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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/shell/browser/shell_url_request_context_getter.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index 0f40d05d67b0b897a86ba48f5fe87a596b60620a..f7c4285b77c22af72246b67528f58d52ec246683 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -5,10 +5,10 @@
#include "content/shell/renderer/layout_test/blink_test_runner.h"
#include <stddef.h>
-
#include <algorithm>
#include <clocale>
#include <cmath>
+#include <utility>
#include "base/base64.h"
#include "base/command_line.h"
@@ -116,7 +116,7 @@ namespace {
class InvokeTaskHelper : public blink::WebTaskRunner::Task {
public:
InvokeTaskHelper(scoped_ptr<test_runner::WebTask> task)
- : task_(task.Pass()) {}
+ : task_(std::move(task)) {}
// WebThread::Task implementation:
void run() override { task_->run(); }
@@ -289,7 +289,7 @@ void BlinkTestRunner::SetEditCommand(const std::string& name,
void BlinkTestRunner::SetGamepadProvider(
test_runner::GamepadController* controller) {
scoped_ptr<MockGamepadProvider> provider(new MockGamepadProvider(controller));
- SetMockGamepadProvider(provider.Pass());
+ SetMockGamepadProvider(std::move(provider));
}
void BlinkTestRunner::SetDeviceLightData(const double data) {
« no previous file with comments | « content/shell/browser/shell_url_request_context_getter.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698