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

Unified Diff: base/power_monitor/power_monitor.cc

Issue 1479473002: base: Use std::move() instead of Pass() for real movable types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: basepass: missing-include Created 5 years, 1 month 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 | « base/move_unittest.cc ('k') | base/prefs/default_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/power_monitor/power_monitor.cc
diff --git a/base/power_monitor/power_monitor.cc b/base/power_monitor/power_monitor.cc
index 98c9c68c1dfae151f7252b816103af14d5f09e9f..1033299594187e31a554059faa066696b4a27685 100644
--- a/base/power_monitor/power_monitor.cc
+++ b/base/power_monitor/power_monitor.cc
@@ -3,6 +3,9 @@
// found in the LICENSE file.
#include "base/power_monitor/power_monitor.h"
+
+#include <utility>
+
#include "base/power_monitor/power_monitor_source.h"
namespace base {
@@ -11,7 +14,7 @@ static PowerMonitor* g_power_monitor = NULL;
PowerMonitor::PowerMonitor(scoped_ptr<PowerMonitorSource> source)
: observers_(new ObserverListThreadSafe<PowerObserver>()),
- source_(source.Pass()) {
+ source_(std::move(source)) {
DCHECK(!g_power_monitor);
g_power_monitor = this;
}
« no previous file with comments | « base/move_unittest.cc ('k') | base/prefs/default_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698