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

Unified Diff: content/browser/power_usage_monitor_impl.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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: content/browser/power_usage_monitor_impl.cc
diff --git a/content/browser/power_usage_monitor_impl.cc b/content/browser/power_usage_monitor_impl.cc
index 92d835a18e3aa8218c72ea94ffe88d2af19bcdc8..65d4d9dd7a5f56bbe75f2546719c57faf3af5198 100644
--- a/content/browser/power_usage_monitor_impl.cc
+++ b/content/browser/power_usage_monitor_impl.cc
@@ -5,6 +5,7 @@
#include "content/browser/power_usage_monitor_impl.h"
#include <stddef.h>
+#include <utility>
#include "base/bind.h"
#include "base/lazy_instance.h"
@@ -249,7 +250,7 @@ void PowerUsageMonitor::OnRenderProcessNotification(int type, int rph_id) {
void PowerUsageMonitor::SetSystemInterfaceForTest(
scoped_ptr<SystemInterface> interface) {
- system_interface_ = interface.Pass();
+ system_interface_ = std::move(interface);
}
void PowerUsageMonitor::OnPowerStateChange(bool on_battery_power) {
« no previous file with comments | « content/browser/permissions/permission_service_impl.cc ('k') | content/browser/power_usage_monitor_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698