| 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
|
|
|