Bug 1596129 - Avoid unnecessary copy of params in BackgroundRequestChild::RecvPreprocess. r=dom-workers-and-storage-reviewers,ttung

Depends on D52844

Differential Revision: https://phabricator.services.mozilla.com/D52858

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Giesecke 2019-11-20 13:19:39 +00:00
parent a137d4ea5b
commit 9932ffacc7

View File

@ -2914,8 +2914,7 @@ mozilla::ipc::IPCResult BackgroundRequestChild::RecvPreprocess(
switch (aParams.type()) {
case PreprocessParams::TObjectStoreGetPreprocessParams: {
ObjectStoreGetPreprocessParams params =
aParams.get_ObjectStoreGetPreprocessParams();
const auto& params = aParams.get_ObjectStoreGetPreprocessParams();
rv = HandlePreprocess(params.preprocessInfo());
@ -2923,8 +2922,7 @@ mozilla::ipc::IPCResult BackgroundRequestChild::RecvPreprocess(
}
case PreprocessParams::TObjectStoreGetAllPreprocessParams: {
ObjectStoreGetAllPreprocessParams params =
aParams.get_ObjectStoreGetAllPreprocessParams();
const auto& params = aParams.get_ObjectStoreGetAllPreprocessParams();
rv = HandlePreprocess(params.preprocessInfos());