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

Unified Diff: chrome/browser/sessions/session_service_factory.h

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/session_service_factory.h
diff --git a/chrome/browser/sessions/session_service_factory.h b/chrome/browser/sessions/session_service_factory.h
index a05e2d78492180d1a64ee79fe9c6e98a214584a0..852a9559dc8c445a703ea0496033516a846652a5 100644
--- a/chrome/browser/sessions/session_service_factory.h
+++ b/chrome/browser/sessions/session_service_factory.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_FACTORY_H_
#define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_FACTORY_H_
+#include <utility>
+
#include "base/gtest_prod_util.h"
#include "base/memory/singleton.h"
#include "chrome/browser/profiles/profile.h"
@@ -49,7 +51,7 @@ class SessionServiceFactory : public BrowserContextKeyedServiceFactory {
scoped_ptr<SessionService> service) {
GetInstance()->BrowserContextShutdown(profile);
GetInstance()->BrowserContextDestroyed(profile);
- GetInstance()->Associate(profile, service.Pass());
+ GetInstance()->Associate(profile, std::move(service));
}
#endif

Powered by Google App Engine
This is Rietveld 408576698