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

Unified Diff: chrome/browser/ui/app_list/start_page_service_factory.cc

Issue 879033003: Fix experimental app list's start page logo not showing in Guest Mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_search_results_not_being_there
Patch Set: fix for test Created 5 years, 10 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/ui/app_list/start_page_service_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/start_page_service_factory.cc
diff --git a/chrome/browser/ui/app_list/start_page_service_factory.cc b/chrome/browser/ui/app_list/start_page_service_factory.cc
index 95c1081e5d526300833de92358ac750d43cbc853..0e7c33f5fb03e48f6f7f88b161073946a8c35ad0 100644
--- a/chrome/browser/ui/app_list/start_page_service_factory.cc
+++ b/chrome/browser/ui/app_list/start_page_service_factory.cc
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "chrome/browser/extensions/install_tracker_factory.h"
+#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/app_list/start_page_service.h"
#include "chrome/common/chrome_switches.h"
@@ -49,4 +50,10 @@ KeyedService* StartPageServiceFactory::BuildServiceInstanceFor(
return new StartPageService(profile);
}
+content::BrowserContext* StartPageServiceFactory::GetBrowserContextToUse(
+ content::BrowserContext* context) const {
+ // The start page service needs an instance in ChromeOS guest mode.
+ return chrome::GetBrowserContextRedirectedInIncognito(context);
+}
+
} // namespace app_list
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698