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

Unified Diff: components/test_runner/test_plugin.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/syncable_prefs/pref_service_syncable_unittest.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_plugin.cc
diff --git a/components/test_runner/test_plugin.cc b/components/test_runner/test_plugin.cc
index f26ebe2989f4c9880d7c4c28ea692dd8a6088269..f57c5b77b4180b2d88f4871021c0447d4d012ff0 100644
--- a/components/test_runner/test_plugin.cc
+++ b/components/test_runner/test_plugin.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "base/logging.h"
@@ -132,7 +133,8 @@ blink::WebPluginContainer::TouchEventRequestType ParseTouchEventRequestType(
class DeferredDeleteTask : public blink::WebTaskRunner::Task {
public:
- DeferredDeleteTask(scoped_ptr<TestPlugin> plugin) : plugin_(plugin.Pass()) {}
+ DeferredDeleteTask(scoped_ptr<TestPlugin> plugin)
+ : plugin_(std::move(plugin)) {}
void run() override {}
@@ -305,7 +307,7 @@ void TestPlugin::updateGeometry(
DrawSceneSoftware(bitmap->pixels());
texture_mailbox_ = cc::TextureMailbox(
bitmap.get(), gfx::Size(rect_.width, rect_.height));
- shared_bitmap_ = bitmap.Pass();
+ shared_bitmap_ = std::move(bitmap);
}
}
« no previous file with comments | « components/syncable_prefs/pref_service_syncable_unittest.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698