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

Unified Diff: components/test_runner/test_runner.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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 | « components/test_runner/test_plugin.cc ('k') | components/test_runner/web_test_interfaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner.cc
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
index e7743fdb65036426c23de6b15e53b2a8d80cab53..ce011c06ba33822b5a1b3aef43c883ecd1aa4c91 100644
--- a/components/test_runner/test_runner.cc
+++ b/components/test_runner/test_runner.cc
@@ -5,8 +5,8 @@
#include "components/test_runner/test_runner.h"
#include <stddef.h>
-
#include <limits>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
@@ -3044,7 +3044,7 @@ void TestRunner::CopyImageAtAndCapturePixelsAsyncThen(
void TestRunner::GetManifestCallback(scoped_ptr<InvokeCallbackTask> task,
const blink::WebURLResponse& response,
const std::string& data) {
- InvokeCallback(task.Pass());
+ InvokeCallback(std::move(task));
}
void TestRunner::CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task,
@@ -3088,7 +3088,7 @@ void TestRunner::CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task,
&buffer, context->Global(), isolate);
task->SetArguments(3, argv);
- InvokeCallback(task.Pass());
+ InvokeCallback(std::move(task));
}
void TestRunner::DispatchBeforeInstallPromptCallback(
@@ -3107,7 +3107,7 @@ void TestRunner::DispatchBeforeInstallPromptCallback(
argv[0] = v8::Boolean::New(isolate, canceled);
task->SetArguments(1, argv);
- InvokeCallback(task.Pass());
+ InvokeCallback(std::move(task));
}
void TestRunner::GetBluetoothManualChooserEventsCallback(
@@ -3129,7 +3129,7 @@ void TestRunner::GetBluetoothManualChooserEventsCallback(
// Call the callback.
task->SetArguments(1, arg);
- InvokeCallback(task.Pass());
+ InvokeCallback(std::move(task));
}
void TestRunner::LocationChangeDone() {
« no previous file with comments | « components/test_runner/test_plugin.cc ('k') | components/test_runner/web_test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698