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

Side by Side Diff: chrome/browser/search_engines/template_url_service_factory.cc

Issue 10908226: Introduces a search term extraction mechanism working for arbitrary search providers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed version_46.sql, committed separately. Created 8 years, 2 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 | Annotate | Revision Log
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/search_engines/template_url_service_factory.h" 5 #include "chrome/browser/search_engines/template_url_service_factory.h"
6 6
7 #include "chrome/browser/google/google_url_tracker_factory.h" 7 #include "chrome/browser/google/google_url_tracker_factory.h"
8 #include "chrome/browser/history/history_service_factory.h" 8 #include "chrome/browser/history/history_service_factory.h"
9 #include "chrome/browser/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
10 #include "chrome/browser/profiles/profile_dependency_manager.h" 10 #include "chrome/browser/profiles/profile_dependency_manager.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 PrefService::UNSYNCABLE_PREF); 71 PrefService::UNSYNCABLE_PREF);
72 prefs->RegisterStringPref(prefs::kDefaultSearchProviderKeyword, 72 prefs->RegisterStringPref(prefs::kDefaultSearchProviderKeyword,
73 std::string(), 73 std::string(),
74 PrefService::UNSYNCABLE_PREF); 74 PrefService::UNSYNCABLE_PREF);
75 prefs->RegisterStringPref(prefs::kDefaultSearchProviderIconURL, 75 prefs->RegisterStringPref(prefs::kDefaultSearchProviderIconURL,
76 std::string(), 76 std::string(),
77 PrefService::UNSYNCABLE_PREF); 77 PrefService::UNSYNCABLE_PREF);
78 prefs->RegisterStringPref(prefs::kDefaultSearchProviderEncodings, 78 prefs->RegisterStringPref(prefs::kDefaultSearchProviderEncodings,
79 std::string(), 79 std::string(),
80 PrefService::UNSYNCABLE_PREF); 80 PrefService::UNSYNCABLE_PREF);
81 prefs->RegisterListPref(prefs::kDefaultSearchProviderAlternateURLs,
82 PrefService::UNSYNCABLE_PREF);
81 } 83 }
82 84
83 bool TemplateURLServiceFactory::ServiceRedirectedInIncognito() const { 85 bool TemplateURLServiceFactory::ServiceRedirectedInIncognito() const {
84 return true; 86 return true;
85 } 87 }
86 88
87 bool TemplateURLServiceFactory::ServiceIsNULLWhileTesting() const { 89 bool TemplateURLServiceFactory::ServiceIsNULLWhileTesting() const {
88 return true; 90 return true;
89 } 91 }
90 92
91 void TemplateURLServiceFactory::ProfileShutdown(Profile* profile) { 93 void TemplateURLServiceFactory::ProfileShutdown(Profile* profile) {
92 // We shutdown AND destroy the TemplateURLService during this pass. 94 // We shutdown AND destroy the TemplateURLService during this pass.
93 // TemplateURLService schedules a task on the WebDataService from its 95 // TemplateURLService schedules a task on the WebDataService from its
94 // destructor. Delete it first to ensure the task gets scheduled before we 96 // destructor. Delete it first to ensure the task gets scheduled before we
95 // shut down the database. 97 // shut down the database.
96 ProfileKeyedServiceFactory::ProfileShutdown(profile); 98 ProfileKeyedServiceFactory::ProfileShutdown(profile);
97 ProfileKeyedServiceFactory::ProfileDestroyed(profile); 99 ProfileKeyedServiceFactory::ProfileDestroyed(profile);
98 } 100 }
99 101
100 void TemplateURLServiceFactory::ProfileDestroyed(Profile* profile) { 102 void TemplateURLServiceFactory::ProfileDestroyed(Profile* profile) {
101 // Don't double delete. 103 // Don't double delete.
102 } 104 }
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_service.cc ('k') | chrome/browser/search_engines/template_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698