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

Unified Diff: chrome/browser/search/suggestions/suggestions_service_factory.cc

Issue 744033002: Remove unnecessary overrides and test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/search/suggestions/suggestions_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/search/suggestions/suggestions_service_factory.cc
diff --git a/chrome/browser/search/suggestions/suggestions_service_factory.cc b/chrome/browser/search/suggestions/suggestions_service_factory.cc
index a5efc4417407a0b1a1125421d64216dd3c9148bd..a1e2982b35da7788d487e4506e0dac5d6d5f42bf 100644
--- a/chrome/browser/search/suggestions/suggestions_service_factory.cc
+++ b/chrome/browser/search/suggestions/suggestions_service_factory.cc
@@ -28,9 +28,6 @@ namespace suggestions {
// static
SuggestionsService* SuggestionsServiceFactory::GetForProfile(Profile* profile) {
- if (profile->IsOffTheRecord())
- return NULL;
-
return static_cast<SuggestionsService*>(
GetInstance()->GetServiceForBrowserContext(profile, true));
}
@@ -49,11 +46,6 @@ SuggestionsServiceFactory::SuggestionsServiceFactory()
SuggestionsServiceFactory::~SuggestionsServiceFactory() {}
-content::BrowserContext* SuggestionsServiceFactory::GetBrowserContextToUse(
- content::BrowserContext* context) const {
- return chrome::GetBrowserContextRedirectedInIncognito(context);
-}
-
KeyedService* SuggestionsServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
scoped_refptr<base::SequencedTaskRunner> background_task_runner =
« no previous file with comments | « chrome/browser/search/suggestions/suggestions_service_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698