Chromium Code Reviews| 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/search_engines/template_url_service_factory.h" | 5 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "chrome/browser/google/google_url_tracker_factory.h" | 10 #include "chrome/browser/google/google_url_tracker_factory.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 registry->RegisterStringPref( | 117 registry->RegisterStringPref( |
| 118 prefs::kDefaultSearchProviderEncodings, | 118 prefs::kDefaultSearchProviderEncodings, |
| 119 std::string(), | 119 std::string(), |
| 120 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 120 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 121 registry->RegisterListPref(prefs::kDefaultSearchProviderAlternateURLs, | 121 registry->RegisterListPref(prefs::kDefaultSearchProviderAlternateURLs, |
| 122 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 122 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 123 registry->RegisterStringPref( | 123 registry->RegisterStringPref( |
| 124 prefs::kDefaultSearchProviderSearchTermsReplacementKey, | 124 prefs::kDefaultSearchProviderSearchTermsReplacementKey, |
| 125 std::string(), | 125 std::string(), |
| 126 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 126 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 127 registry->RegisterDictionaryPref( | |
| 128 prefs::kDefaultSearchProviderData, | |
|
erikwright (departed)
2014/04/23 14:18:01
DefaultSearchManager::RegisterProfilePrefs(registr
Cait (Slow)
2014/04/23 19:10:05
Done.
| |
| 129 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
| 127 } | 130 } |
| 128 | 131 |
| 129 content::BrowserContext* TemplateURLServiceFactory::GetBrowserContextToUse( | 132 content::BrowserContext* TemplateURLServiceFactory::GetBrowserContextToUse( |
| 130 content::BrowserContext* context) const { | 133 content::BrowserContext* context) const { |
| 131 return chrome::GetBrowserContextRedirectedInIncognito(context); | 134 return chrome::GetBrowserContextRedirectedInIncognito(context); |
| 132 } | 135 } |
| 133 | 136 |
| 134 bool TemplateURLServiceFactory::ServiceIsNULLWhileTesting() const { | 137 bool TemplateURLServiceFactory::ServiceIsNULLWhileTesting() const { |
| 135 return true; | 138 return true; |
| 136 } | 139 } |
| OLD | NEW |