OLD | NEW |
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" | 7 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |
8 #include "chrome/browser/history/shortcuts_backend_factory.h" | 8 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" |
9 #include "chrome/browser/profiles/incognito_helpers.h" | 9 #include "chrome/browser/profiles/incognito_helpers.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/search_engines/template_url_service_factory.h" | 11 #include "chrome/browser/search_engines/template_url_service_factory.h" |
12 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 12 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
13 #include "extensions/browser/extension_system_provider.h" | 13 #include "extensions/browser/extension_system_provider.h" |
14 #include "extensions/browser/extensions_browser_client.h" | 14 #include "extensions/browser/extensions_browser_client.h" |
15 | 15 |
16 // static | 16 // static |
17 AutocompleteClassifier* AutocompleteClassifierFactory::GetForProfile( | 17 AutocompleteClassifier* AutocompleteClassifierFactory::GetForProfile( |
18 Profile* profile) { | 18 Profile* profile) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 52 } |
53 | 53 |
54 bool AutocompleteClassifierFactory::ServiceIsNULLWhileTesting() const { | 54 bool AutocompleteClassifierFactory::ServiceIsNULLWhileTesting() const { |
55 return true; | 55 return true; |
56 } | 56 } |
57 | 57 |
58 KeyedService* AutocompleteClassifierFactory::BuildServiceInstanceFor( | 58 KeyedService* AutocompleteClassifierFactory::BuildServiceInstanceFor( |
59 content::BrowserContext* profile) const { | 59 content::BrowserContext* profile) const { |
60 return BuildInstanceFor(static_cast<Profile*>(profile)); | 60 return BuildInstanceFor(static_cast<Profile*>(profile)); |
61 } | 61 } |
OLD | NEW |