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

Unified Diff: chrome/browser/sessions/tab_restore_service_factory.cc

Issue 1309363007: [sessions] Remove most knowledge of //chrome from core tab restore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tab_restore_service_client
Patch Set: Self-review Created 5 years, 3 months 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 a0d5db400d9353f16cf4023697bbf0c1584fda28..6d3e4c4f20d5d9ed2183e43419b1a9c359d88a3f 100644
--- a/chrome/browser/sessions/tab_restore_service_factory.cc
+++ b/chrome/browser/sessions/tab_restore_service_factory.cc
@@ -54,11 +54,12 @@ bool TabRestoreServiceFactory::ServiceIsNULLWhileTesting() const {
KeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* browser_context) const {
Profile* profile = Profile::FromBrowserContext(browser_context);
+ DCHECK(!profile->IsOffTheRecord());
scoped_ptr<sessions::TabRestoreServiceClient> client(
new ChromeTabRestoreServiceClient(profile));
#if defined(OS_ANDROID)
- return new InMemoryTabRestoreService(profile, nullptr);
+ return new InMemoryTabRestoreService(profile, client.Pass(), nullptr);
#else
return new PersistentTabRestoreService(profile, client.Pass(), nullptr);
#endif

Powered by Google App Engine
This is Rietveld 408576698