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

Unified Diff: ui/events/test/event_generator.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/events/scoped_target_handler_unittest.cc ('k') | ui/events/test/test_event_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/event_generator.cc
diff --git a/ui/events/test/event_generator.cc b/ui/events/test/event_generator.cc
index 021268b277adea243c89c15aa7a781a05089c54a..ce3e3787470e6620faf915b1f46cf8e0f1edcaa8 100644
--- a/ui/events/test/event_generator.cc
+++ b/ui/events/test/event_generator.cc
@@ -4,6 +4,8 @@
#include "ui/events/test/event_generator.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/memory/scoped_ptr.h"
@@ -553,7 +555,7 @@ void EventGenerator::Dispatch(ui::Event* event) {
}
void EventGenerator::SetTickClock(scoped_ptr<base::TickClock> tick_clock) {
- tick_clock_ = tick_clock.Pass();
+ tick_clock_ = std::move(tick_clock);
}
base::TimeDelta EventGenerator::Now() {
« no previous file with comments | « ui/events/scoped_target_handler_unittest.cc ('k') | ui/events/test/test_event_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698