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

Unified Diff: components/timers/alarm_timer_chromeos.cc

Issue 1552023002: Convert Pass()→std::move() in //components (CrOS edition) (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
Index: components/timers/alarm_timer_chromeos.cc
diff --git a/components/timers/alarm_timer_chromeos.cc b/components/timers/alarm_timer_chromeos.cc
index 57b1c0c0918f9bec81a920e35249eedec8ec512e..0cb25fafd876312d40cb27fb572e0b7037ddc747 100644
--- a/components/timers/alarm_timer_chromeos.cc
+++ b/components/timers/alarm_timer_chromeos.cc
@@ -6,6 +6,7 @@
#include <stdint.h>
#include <sys/timerfd.h>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -425,7 +426,7 @@ void AlarmTimer::OnTimerFired() {
// Take ownership of the pending user task, which is going to be cleared by
// the Stop() or Reset() functions below.
- scoped_ptr<base::PendingTask> pending_user_task(pending_task_.Pass());
+ scoped_ptr<base::PendingTask> pending_user_task(std::move(pending_task_));
// Re-schedule or stop the timer as requested.
if (base::Timer::is_repeating())
« no previous file with comments | « components/storage_monitor/storage_monitor_chromeos_unittest.cc ('k') | components/user_manager/user_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698