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

Unified Diff: components/storage_monitor/test_storage_monitor.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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/storage_monitor/test_storage_monitor.cc
diff --git a/components/storage_monitor/test_storage_monitor.cc b/components/storage_monitor/test_storage_monitor.cc
index 33e80a5831abc4a1f5b67583c569f52ff7389b65..a7b52f41f4a873104ca456725b9b4bc28b5e70c2 100644
--- a/components/storage_monitor/test_storage_monitor.cc
+++ b/components/storage_monitor/test_storage_monitor.cc
@@ -4,6 +4,8 @@
#include "components/storage_monitor/test_storage_monitor.h"
+#include <utility>
+
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
#include "build/build_config.h"
@@ -35,7 +37,7 @@ TestStorageMonitor* TestStorageMonitor::CreateAndInstall() {
monitor->MarkInitialized();
if (StorageMonitor::GetInstance() == NULL) {
- StorageMonitor::SetStorageMonitorForTesting(pass_monitor.Pass());
+ StorageMonitor::SetStorageMonitorForTesting(std::move(pass_monitor));
return monitor;
}
@@ -49,7 +51,7 @@ TestStorageMonitor* TestStorageMonitor::CreateForBrowserTests() {
monitor->MarkInitialized();
scoped_ptr<StorageMonitor> pass_monitor(monitor);
- StorageMonitor::SetStorageMonitorForTesting(pass_monitor.Pass());
+ StorageMonitor::SetStorageMonitorForTesting(std::move(pass_monitor));
return monitor;
}
« no previous file with comments | « components/storage_monitor/storage_monitor_linux_unittest.cc ('k') | components/suggestions/image_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698