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

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

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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/extension_function_test_utils.cc
diff --git a/chrome/browser/extensions/extension_function_test_utils.cc b/chrome/browser/extensions/extension_function_test_utils.cc
index 3dec01e84126cfdc67a856014e06d37fef06988b..0446ff3885839512b718a53496f3c28a8b46d18f 100644
--- a/chrome/browser/extensions/extension_function_test_utils.cc
+++ b/chrome/browser/extensions/extension_function_test_utils.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/extensions/extension_function_test_utils.h"
#include <string>
+#include <utility>
#include "base/files/file_path.h"
#include "base/json/json_reader.h"
@@ -165,7 +166,7 @@ bool RunFunction(UIThreadExtensionFunction* function,
scoped_ptr<base::ListValue> parsed_args(ParseList(args));
EXPECT_TRUE(parsed_args.get())
<< "Could not parse extension function arguments: " << args;
- return RunFunction(function, parsed_args.Pass(), browser, flags);
+ return RunFunction(function, std::move(parsed_args), browser, flags);
}
bool RunFunction(UIThreadExtensionFunction* function,
@@ -179,10 +180,7 @@ bool RunFunction(UIThreadExtensionFunction* function,
// TODO(yoz): The cast is a hack; these flags should be defined in
// only one place. See crbug.com/394840.
return extensions::api_test_utils::RunFunction(
- function,
- args.Pass(),
- browser->profile(),
- dispatcher.Pass(),
+ function, std::move(args), browser->profile(), std::move(dispatcher),
static_cast<extensions::api_test_utils::RunFunctionFlags>(flags));
}
« no previous file with comments | « chrome/browser/extensions/extension_disabled_ui.cc ('k') | chrome/browser/extensions/extension_garbage_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698