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

Unified Diff: content/browser/power_usage_monitor_impl_unittest.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_unittest.cc
diff --git a/content/browser/power_usage_monitor_impl_unittest.cc b/content/browser/power_usage_monitor_impl_unittest.cc
index efa46f2593ae690f5cbf526d65f04344fd537cd0..2aac58594893f09904f325e01c788fc87055ac08 100644
--- a/content/browser/power_usage_monitor_impl_unittest.cc
+++ b/content/browser/power_usage_monitor_impl_unittest.cc
@@ -4,6 +4,8 @@
#include "content/browser/power_usage_monitor_impl.h"
+#include <utility>
+
#include "content/public/browser/notification_types.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "device/battery/battery_monitor.mojom.h"
@@ -66,7 +68,7 @@ class PowerUsageMonitorTest : public testing::Test {
scoped_ptr<SystemInterfaceForTest> test_interface(
new SystemInterfaceForTest());
system_interface_ = test_interface.get();
- monitor_->SetSystemInterfaceForTest(test_interface.Pass());
+ monitor_->SetSystemInterfaceForTest(std::move(test_interface));
// Without live renderers, the monitor won't do anything.
monitor_->OnRenderProcessNotification(NOTIFICATION_RENDERER_PROCESS_CREATED,
« no previous file with comments | « content/browser/power_usage_monitor_impl.cc ('k') | content/browser/presentation/presentation_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698