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; |
} |