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

Unified Diff: ui/views/test/scoped_views_test_helper.cc

Issue 1539583003: Convert Pass()→std::move() in ui/ (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 | « ui/views/test/menu_runner_test_api.cc ('k') | ui/views/test/views_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/scoped_views_test_helper.cc
diff --git a/ui/views/test/scoped_views_test_helper.cc b/ui/views/test/scoped_views_test_helper.cc
index c765cc4f8eb4116dc9998327c563d24c0d60e7c2..f7868a8cfa9149217efe641f768b90d357df6793 100644
--- a/ui/views/test/scoped_views_test_helper.cc
+++ b/ui/views/test/scoped_views_test_helper.cc
@@ -4,6 +4,8 @@
#include "ui/views/test/scoped_views_test_helper.h"
+#include <utility>
+
#include "base/message_loop/message_loop.h"
#include "ui/base/ime/input_method_initializer.h"
#include "ui/compositor/test/context_factories_for_test.h"
@@ -18,7 +20,7 @@ ScopedViewsTestHelper::ScopedViewsTestHelper()
ScopedViewsTestHelper::ScopedViewsTestHelper(
scoped_ptr<TestViewsDelegate> views_delegate)
- : views_delegate_(views_delegate.Pass()) {
+ : views_delegate_(std::move(views_delegate)) {
// The ContextFactory must exist before any Compositors are created.
bool enable_pixel_output = false;
ui::ContextFactory* context_factory =
« no previous file with comments | « ui/views/test/menu_runner_test_api.cc ('k') | ui/views/test/views_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698