Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(827)

Unified Diff: chrome/browser/extensions/permissions_updater_unittest.cc

Issue 1739183003: Make extensions::DictionaryBuilder and extensions::ListValue unmovable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/permissions_updater_unittest.cc
diff --git a/chrome/browser/extensions/permissions_updater_unittest.cc b/chrome/browser/extensions/permissions_updater_unittest.cc
index 0f3914375fb7ed0227984509e28e3a4293fba5cf..5c6b46e406c8f442ff58042c9870507ac808771b 100644
--- a/chrome/browser/extensions/permissions_updater_unittest.cc
+++ b/chrome/browser/extensions/permissions_updater_unittest.cc
@@ -44,14 +44,15 @@ scoped_refptr<const Extension> CreateExtensionWithOptionalPermissions(
const std::string& name) {
return ExtensionBuilder()
.SetLocation(Manifest::INTERNAL)
- .SetManifest(std::move(
+ .SetManifest(
DictionaryBuilder()
.Set("name", name)
.Set("description", "foo")
.Set("manifest_version", 2)
.Set("version", "0.1.2.3")
.Set("permissions", std::move(permissions))
- .Set("optional_permissions", std::move(optional_permissions))))
+ .Set("optional_permissions", std::move(optional_permissions))
+ .Build())
.SetID(crx_file::id_util::GenerateId(name))
.Build();
}

Powered by Google App Engine
This is Rietveld 408576698