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

Unified Diff: chrome/browser/ui/views/frame/test_with_browser_view.cc

Issue 354773002: Reduces dependency from AutocompleteMatch to Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/ui/views/frame/test_with_browser_view.cc
diff --git a/chrome/browser/ui/views/frame/test_with_browser_view.cc b/chrome/browser/ui/views/frame/test_with_browser_view.cc
index a4b4d9395e078709b7edc25dd64dd773e02a8395..7969e9816570125f2246a4b195c481ffde575def 100644
--- a/chrome/browser/ui/views/frame/test_with_browser_view.cc
+++ b/chrome/browser/ui/views/frame/test_with_browser_view.cc
@@ -31,11 +31,12 @@ KeyedService* CreateTemplateURLService(content::BrowserContext* profile) {
return new TemplateURLService(static_cast<Profile*>(profile), NULL);
}
-KeyedService* CreateAutocompleteClassifier(content::BrowserContext* profile) {
+KeyedService* CreateAutocompleteClassifier(content::BrowserContext* context) {
+ Profile* profile = static_cast<Profile*>(context);
return new AutocompleteClassifier(
make_scoped_ptr(new AutocompleteController(
- static_cast<Profile*>(profile), NULL,
- AutocompleteClassifier::kDefaultOmniboxProviders)),
+ profile, NULL, AutocompleteClassifier::kDefaultOmniboxProviders,
+ TemplateURLServiceFactory::GetForProfile(profile))),
scoped_ptr<AutocompleteSchemeClassifier>(new TestSchemeClassifier()));
}

Powered by Google App Engine
This is Rietveld 408576698