summaryrefslogtreecommitdiffstats
path: root/extensions/browser/runtime_data_unittest.cc
diff options
context:
space:
mode:
authorlimasdf <limasdf@gmail.com>2015-12-19 04:04:49 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-19 12:06:04 +0000
commit21d67e679792a286c581f20ea8e4848b9c34061e (patch)
treedc6783b7a0229c79e3a8514293fc874eb0fa4789 /extensions/browser/runtime_data_unittest.cc
parent49f72db8dbff60fb22dfddf09dddeffe54f674db (diff)
downloadchromium_src-21d67e679792a286c581f20ea8e4848b9c34061e.zip
chromium_src-21d67e679792a286c581f20ea8e4848b9c34061e.tar.gz
chromium_src-21d67e679792a286c581f20ea8e4848b9c34061e.tar.bz2
Use rvalue reference instead of extensions::DictionaryBuilder::pass()
C++ 11 enables rvalue reference with std::move() so that removing DictionaryBuilder::Pass(). BUG=563649 TBR=thakis@chromium.org Review URL: https://codereview.chromium.org/1532193003 Cr-Commit-Position: refs/heads/master@{#366280}
Diffstat (limited to 'extensions/browser/runtime_data_unittest.cc')
-rw-r--r--extensions/browser/runtime_data_unittest.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/extensions/browser/runtime_data_unittest.cc b/extensions/browser/runtime_data_unittest.cc
index bec1e13..cb3ed8d7 100644
--- a/extensions/browser/runtime_data_unittest.cc
+++ b/extensions/browser/runtime_data_unittest.cc
@@ -20,11 +20,12 @@ namespace {
// Creates a very simple extension with a background page.
scoped_refptr<Extension> CreateExtensionWithBackgroundPage() {
return ExtensionBuilder()
- .SetManifest(
- DictionaryBuilder()
- .Set("name", "test")
- .Set("version", "0.1")
- .Set("background", DictionaryBuilder().Set("page", "bg.html")))
+ .SetManifest(std::move(
+ DictionaryBuilder()
+ .Set("name", "test")
+ .Set("version", "0.1")
+ .Set("background",
+ std::move(DictionaryBuilder().Set("page", "bg.html")))))
.SetID("id2")
.Build();
}