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

Unified Diff: chrome/browser/apps/drive/drive_app_provider.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/browser/apps/drive/drive_app_provider.cc
diff --git a/chrome/browser/apps/drive/drive_app_provider.cc b/chrome/browser/apps/drive/drive_app_provider.cc
index 380bcd475145fa5e1f2ba8992677b1340837afde..e448a02ed081dcc92d9d87eb0673a871db40d47f 100644
--- a/chrome/browser/apps/drive/drive_app_provider.cc
+++ b/chrome/browser/apps/drive/drive_app_provider.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/apps/drive/drive_app_provider.h"
#include <stddef.h>
-
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -44,7 +44,7 @@ DriveAppProvider::DriveAppProvider(
DriveAppUninstallSyncService* uninstall_sync_service)
: profile_(profile),
uninstall_sync_service_(uninstall_sync_service),
- service_bridge_(DriveServiceBridge::Create(profile).Pass()),
+ service_bridge_(DriveServiceBridge::Create(profile)),
mapping_(new DriveAppMapping(profile->GetPrefs())),
drive_app_registry_updated_(false),
weak_ptr_factory_(this) {
@@ -67,7 +67,7 @@ void DriveAppProvider::AppendDependsOnFactories(
void DriveAppProvider::SetDriveServiceBridgeForTest(
scoped_ptr<DriveServiceBridge> test_bridge) {
service_bridge_->GetAppRegistry()->RemoveObserver(this);
- service_bridge_ = test_bridge.Pass();
+ service_bridge_ = std::move(test_bridge);
service_bridge_->GetAppRegistry()->AddObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698