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

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

Issue 10832080: Upstream session_backend_android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
« no previous file with comments | « chrome/browser/sessions/session_restore_android.cc ('k') | chrome/browser/sessions/session_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_service_factory.cc
diff --git a/chrome/browser/sessions/session_service_factory.cc b/chrome/browser/sessions/session_service_factory.cc
index 3705d93605101693a3a8d898ea5a06b183d6e9cf..0cde1a1eaecc2782ee96f9630903d1d67c94253e 100644
--- a/chrome/browser/sessions/session_service_factory.cc
+++ b/chrome/browser/sessions/session_service_factory.cc
@@ -9,15 +9,25 @@
// static
SessionService* SessionServiceFactory::GetForProfile(Profile* profile) {
+#if defined(OS_ANDROID)
+ // For Android we do not store sessions in the SessionService.
+ return NULL;
+#else
return static_cast<SessionService*>(
GetInstance()->GetServiceForProfile(profile, true));
+#endif
}
// static
SessionService* SessionServiceFactory::GetForProfileIfExisting(
Profile* profile) {
+#if defined(OS_ANDROID)
+ // For Android we do not store sessions in the SessionService.
+ return NULL;
+#else
return static_cast<SessionService*>(
GetInstance()->GetServiceForProfile(profile, false));
+#endif
}
// static
« no previous file with comments | « chrome/browser/sessions/session_restore_android.cc ('k') | chrome/browser/sessions/session_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698