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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_classifier_factory.cc

Issue 1191373002: Componentize AutocompleteController and its supporting cast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prep_builtin_provider_for_c14n
Patch Set: Rebase Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" 5 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h"
6 6
7 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
8 #include "chrome/browser/autocomplete/autocomplete_controller.h"
9 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" 7 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h"
10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" 8 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
11 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" 9 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h"
12 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" 10 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h"
13 #include "chrome/browser/profiles/incognito_helpers.h" 11 #include "chrome/browser/profiles/incognito_helpers.h"
14 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/search_engines/template_url_service_factory.h" 13 #include "chrome/browser/search_engines/template_url_service_factory.h"
16 #include "components/keyed_service/content/browser_context_dependency_manager.h" 14 #include "components/keyed_service/content/browser_context_dependency_manager.h"
15 #include "components/omnibox/autocomplete_classifier.h"
16 #include "components/omnibox/autocomplete_controller.h"
17 17
18 #if defined(ENABLE_EXTENSIONS) 18 #if defined(ENABLE_EXTENSIONS)
19 #include "extensions/browser/extension_system_provider.h" 19 #include "extensions/browser/extension_system_provider.h"
20 #include "extensions/browser/extensions_browser_client.h" 20 #include "extensions/browser/extensions_browser_client.h"
21 #endif 21 #endif
22 22
23 // static 23 // static
24 AutocompleteClassifier* AutocompleteClassifierFactory::GetForProfile( 24 AutocompleteClassifier* AutocompleteClassifierFactory::GetForProfile(
25 Profile* profile) { 25 Profile* profile) {
26 return static_cast<AutocompleteClassifier*>( 26 return static_cast<AutocompleteClassifier*>(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 bool AutocompleteClassifierFactory::ServiceIsNULLWhileTesting() const { 70 bool AutocompleteClassifierFactory::ServiceIsNULLWhileTesting() const {
71 return true; 71 return true;
72 } 72 }
73 73
74 KeyedService* AutocompleteClassifierFactory::BuildServiceInstanceFor( 74 KeyedService* AutocompleteClassifierFactory::BuildServiceInstanceFor(
75 content::BrowserContext* profile) const { 75 content::BrowserContext* profile) const {
76 return BuildInstanceFor(static_cast<Profile*>(profile)).release(); 76 return BuildInstanceFor(static_cast<Profile*>(profile)).release();
77 } 77 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_classifier.cc ('k') | chrome/browser/autocomplete/autocomplete_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698