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

Unified Diff: chrome/browser/sessions/tab_restore_service_factory.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/sessions/tab_restore_service_factory.cc
diff --git a/chrome/browser/sessions/tab_restore_service_factory.cc b/chrome/browser/sessions/tab_restore_service_factory.cc
index b0b3edc14d45b86960d33bd10aa57c5b653af3df..6a31aecc5e84f1fc94355e39281ce58bdfe163a9 100644
--- a/chrome/browser/sessions/tab_restore_service_factory.cc
+++ b/chrome/browser/sessions/tab_restore_service_factory.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/sessions/tab_restore_service_factory.h"
+#include <utility>
+
#include "build/build_config.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/chrome_tab_restore_service_client.h"
@@ -62,6 +64,6 @@ KeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor(
#if defined(OS_ANDROID)
return new sessions::InMemoryTabRestoreService(client.Pass(), nullptr);
Lei Zhang 2015/12/27 22:35:06 Did you miss one here?
dcheng 2015/12/27 23:09:36 This will be updated when I make a pass over the A
#else
- return new sessions::PersistentTabRestoreService(client.Pass(), nullptr);
+ return new sessions::PersistentTabRestoreService(std::move(client), nullptr);
#endif
}
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | chrome/browser/signin/account_reconcilor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698