diff options
author | limasdf <limasdf@gmail.com> | 2015-12-08 19:58:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-09 03:59:36 +0000 |
commit | 3d1025433fba150119ec1519f9228f2febddd55c (patch) | |
tree | 1b00bc3d0334a7c624d7e49043182a6a9d6dd605 /extensions/common/test_util.cc | |
parent | 9679230bb637a8aeca7598d08da802b1c64404fe (diff) | |
download | chromium_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/common/test_util.cc')
-rw-r--r-- | extensions/common/test_util.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/common/test_util.cc b/extensions/common/test_util.cc index dafbca2..9a9312a 100644 --- a/extensions/common/test_util.cc +++ b/extensions/common/test_util.cc @@ -4,6 +4,8 @@ #include "extensions/common/test_util.h" +#include <utility> + #include "extensions/common/extension.h" #include "extensions/common/extension_builder.h" #include "extensions/common/value_builder.h" @@ -29,8 +31,8 @@ ExtensionBuilder& BuildApp(ExtensionBuilder& builder) { extensions::DictionaryBuilder().Set( "background", extensions::DictionaryBuilder().Set( - "scripts", - extensions::ListBuilder().Append("background.js"))))); + "scripts", std::move(extensions::ListBuilder().Append( + "background.js")))))); } scoped_refptr<Extension> CreateEmptyExtension() { |