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

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: Make OnTabRestored() optional 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 6d0b85e6f370a1bf5bd2ff041b5f400d3ca93db9..b835f97d0340b2278e860dea88ada822e6bcfd4f 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
« no previous file with comments | « chrome/browser/sessions/persistent_tab_restore_service.cc ('k') | chrome/browser/sessions/tab_restore_service_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698