summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_action_test_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_action_test_util.cc')
-rw-r--r--chrome/browser/extensions/extension_action_test_util.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/extensions/extension_action_test_util.cc b/chrome/browser/extensions/extension_action_test_util.cc
index 1a9de97..b860331 100644
--- a/chrome/browser/extensions/extension_action_test_util.cc
+++ b/chrome/browser/extensions/extension_action_test_util.cc
@@ -150,12 +150,13 @@ scoped_refptr<const Extension> CreateActionExtension(
}
if (action_key)
- manifest.Set(action_key, DictionaryBuilder().Pass());
+ manifest.Set(action_key, DictionaryBuilder());
- return ExtensionBuilder().SetManifest(manifest.Pass()).
- SetID(crx_file::id_util::GenerateId(name)).
- SetLocation(location).
- Build();
+ return ExtensionBuilder()
+ .SetManifest(std::move(manifest))
+ .SetID(crx_file::id_util::GenerateId(name))
+ .SetLocation(location)
+ .Build();
}
ToolbarActionsModel* CreateToolbarModelForProfile(Profile* profile) {