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

Unified Diff: chrome/browser/autocomplete/autocomplete_classifier_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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/autocomplete/autocomplete_classifier_factory.cc
diff --git a/chrome/browser/autocomplete/autocomplete_classifier_factory.cc b/chrome/browser/autocomplete/autocomplete_classifier_factory.cc
index de95e11068617828bdf92a8fcfb023c51781c751..8b75b45c84f4e235b327bb371b7c5a02c10e8c72 100644
--- a/chrome/browser/autocomplete/autocomplete_classifier_factory.cc
+++ b/chrome/browser/autocomplete/autocomplete_classifier_factory.cc
@@ -7,6 +7,7 @@
#include "chrome/browser/autocomplete/autocomplete_classifier.h"
#include "chrome/browser/extensions/extension_system_factory.h"
#include "chrome/browser/history/shortcuts_backend_factory.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
@@ -25,8 +26,8 @@ AutocompleteClassifierFactory* AutocompleteClassifierFactory::GetInstance() {
// static
ProfileKeyedService* AutocompleteClassifierFactory::BuildInstanceFor(
- Profile* profile) {
- return new AutocompleteClassifier(profile);
+ content::BrowserContext* profile) {
+ return new AutocompleteClassifier(static_cast<Profile*>(profile));
}
AutocompleteClassifierFactory::AutocompleteClassifierFactory()
@@ -51,6 +52,6 @@ bool AutocompleteClassifierFactory::ServiceIsNULLWhileTesting() const {
}
ProfileKeyedService* AutocompleteClassifierFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return BuildInstanceFor(profile);
+ content::BrowserContext* profile) const {
+ return BuildInstanceFor(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698