mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
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:
parent
a137d4ea5b
commit
9932ffacc7
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user