summaryrefslogtreecommitdiffstats
path: root/extensions/shell
diff options
context:
space:
mode:
authorlimasdf <limasdf@gmail.com>2015-12-08 19:58:45 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-09 03:59:36 +0000
commit3d1025433fba150119ec1519f9228f2febddd55c (patch)
tree1b00bc3d0334a7c624d7e49043182a6a9d6dd605 /extensions/shell
parent9679230bb637a8aeca7598d08da802b1c64404fe (diff)
downloadchromium_src-3d1025433fba150119ec1519f9228f2febddd55c.zip
chromium_src-3d1025433fba150119ec1519f9228f2febddd55c.tar.gz
chromium_src-3d1025433fba150119ec1519f9228f2febddd55c.tar.bz2
Use rvalue reference instead of extensions::ListBuilder::Pass()
C++ 11 enables rvalue reference with std::move() so that removing legacy ListBuilder::Pass() stuff. TEST=unit_tests BUG=563649 TBR=thakis@chromium.org Review URL: https://codereview.chromium.org/1497753002 Cr-Commit-Position: refs/heads/master@{#363970}
Diffstat (limited to 'extensions/shell')
-rw-r--r--extensions/shell/browser/api/identity/identity_api_unittest.cc25
1 files changed, 13 insertions, 12 deletions
diff --git a/extensions/shell/browser/api/identity/identity_api_unittest.cc b/extensions/shell/browser/api/identity/identity_api_unittest.cc
index 03e6f71..1802fdb 100644
--- a/extensions/shell/browser/api/identity/identity_api_unittest.cc
+++ b/extensions/shell/browser/api/identity/identity_api_unittest.cc
@@ -5,6 +5,7 @@
#include "extensions/shell/browser/api/identity/identity_api.h"
#include <string>
+#include <utility>
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
@@ -65,18 +66,18 @@ class IdentityApiTest : public ApiUnitTest {
set_extension(
ExtensionBuilder()
.SetManifest(
- DictionaryBuilder()
- .Set("name", "Test")
- .Set("version", "1.0")
- .Set(
- "oauth2",
- DictionaryBuilder()
- .Set("client_id",
- "123456.apps.googleusercontent.com")
- .Set(
- "scopes",
- ListBuilder().Append(
- "https://www.googleapis.com/auth/drive"))))
+ DictionaryBuilder()
+ .Set("name", "Test")
+ .Set("version", "1.0")
+ .Set(
+ "oauth2",
+ DictionaryBuilder()
+ .Set("client_id",
+ "123456.apps.googleusercontent.com")
+ .Set(
+ "scopes",
+ std::move(ListBuilder().Append(
+ "https://www.googleapis.com/auth/drive")))))
.SetLocation(Manifest::UNPACKED)
.Build());
}