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

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

Issue 10626007: Move ExtensionSystem into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Master merge; moved class declaration Created 8 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/extension_app_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" 7 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
8 #include "chrome/browser/extensions/extension_system_factory.h" 8 #include "chrome/browser/extensions/extension_system_factory.h"
9 #include "chrome/browser/history/shortcuts_backend_factory.h" 9 #include "chrome/browser/history/shortcuts_backend_factory.h"
10 #include "chrome/browser/profiles/profile_dependency_manager.h" 10 #include "chrome/browser/profiles/profile_dependency_manager.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // static 26 // static
27 ProfileKeyedService* AutocompleteClassifierFactory::BuildInstanceFor( 27 ProfileKeyedService* AutocompleteClassifierFactory::BuildInstanceFor(
28 Profile* profile) { 28 Profile* profile) {
29 return new AutocompleteClassifier(profile); 29 return new AutocompleteClassifier(profile);
30 } 30 }
31 31
32 AutocompleteClassifierFactory::AutocompleteClassifierFactory() 32 AutocompleteClassifierFactory::AutocompleteClassifierFactory()
33 : ProfileKeyedServiceFactory("AutocompleteClassifier", 33 : ProfileKeyedServiceFactory("AutocompleteClassifier",
34 ProfileDependencyManager::GetInstance()) { 34 ProfileDependencyManager::GetInstance()) {
35 DependsOn(ExtensionSystemFactory::GetInstance()); 35 DependsOn(extensions::ExtensionSystemFactory::GetInstance());
36 DependsOn(TemplateURLServiceFactory::GetInstance()); 36 DependsOn(TemplateURLServiceFactory::GetInstance());
37 // TODO(pkasting): Uncomment these once they exist. 37 // TODO(pkasting): Uncomment these once they exist.
38 // DependsOn(PrefServiceFactory::GetInstance()); 38 // DependsOn(PrefServiceFactory::GetInstance());
39 DependsOn(ShortcutsBackendFactory::GetInstance()); 39 DependsOn(ShortcutsBackendFactory::GetInstance());
40 } 40 }
41 41
42 AutocompleteClassifierFactory::~AutocompleteClassifierFactory() { 42 AutocompleteClassifierFactory::~AutocompleteClassifierFactory() {
43 } 43 }
44 44
45 bool AutocompleteClassifierFactory::ServiceRedirectedInIncognito() { 45 bool AutocompleteClassifierFactory::ServiceRedirectedInIncognito() {
46 return true; 46 return true;
47 } 47 }
48 48
49 bool AutocompleteClassifierFactory::ServiceIsNULLWhileTesting() { 49 bool AutocompleteClassifierFactory::ServiceIsNULLWhileTesting() {
50 return true; 50 return true;
51 } 51 }
52 52
53 ProfileKeyedService* AutocompleteClassifierFactory::BuildServiceInstanceFor( 53 ProfileKeyedService* AutocompleteClassifierFactory::BuildServiceInstanceFor(
54 Profile* profile) const { 54 Profile* profile) const {
55 return BuildInstanceFor(profile); 55 return BuildInstanceFor(profile);
56 } 56 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/extension_app_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698