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

Unified Diff: extensions/shell/browser/api/identity/identity_api_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: extensions/shell/browser/api/identity/identity_api_unittest.cc
diff --git a/extensions/shell/browser/api/identity/identity_api_unittest.cc b/extensions/shell/browser/api/identity/identity_api_unittest.cc
index bf9248ccd5d2bf3b5a3d11b768331c11d0ed43ba..0af6e4b13bbb46a23cfce6bb9bf41aae453fe5a7 100644
--- a/extensions/shell/browser/api/identity/identity_api_unittest.cc
+++ b/extensions/shell/browser/api/identity/identity_api_unittest.cc
@@ -65,18 +65,21 @@ class IdentityApiTest : public ApiUnitTest {
// Create an extension with OAuth2 scopes.
set_extension(
ExtensionBuilder()
- .SetManifest(std::move(
+ .SetManifest(
DictionaryBuilder()
.Set("name", "Test")
.Set("version", "1.0")
.Set("oauth2",
- std::move(DictionaryBuilder()
- .Set("client_id",
- "123456.apps.googleusercontent.com")
- .Set("scopes",
- std::move(ListBuilder().Append(
- "https://www.googleapis.com/"
- "auth/drive")))))))
+ DictionaryBuilder()
+ .Set("client_id",
+ "123456.apps.googleusercontent.com")
+ .Set("scopes",
+ ListBuilder()
+ .Append("https://www.googleapis.com/"
+ "auth/drive")
+ .Build())
+ .Build())
+ .Build())
.SetLocation(Manifest::UNPACKED)
.Build());
}

Powered by Google App Engine
This is Rietveld 408576698