Chromium Code Reviews| Index: chrome/browser/search_engines/template_url_model.cc |
| diff --git a/chrome/browser/search_engines/template_url_model.cc b/chrome/browser/search_engines/template_url_model.cc |
| index 96fe656ece71b54feb2451d0363c713b47d7b0a1..917e57b1b254f387ba2e7e81b2860f66023e3e1e 100644 |
| --- a/chrome/browser/search_engines/template_url_model.cc |
| +++ b/chrome/browser/search_engines/template_url_model.cc |
| @@ -844,12 +844,12 @@ bool TemplateURLModel::LoadDefaultSearchProviderFromPrefs( |
| std::vector<std::string> encodings_vector; |
| base::SplitString(encodings, ';', &encodings_vector); |
| (*default_provider)->set_input_encodings(encodings_vector); |
| - if (!id_string.empty()) { |
| + if (!id_string.empty() && !*is_managed) { |
|
danno
2010/12/08 13:08:45
does this really belong in this CL?
Mattias Nissler (ping if slow)
2010/12/09 10:20:20
If I don't do this, a unit test in template_url_mo
|
| int64 value; |
| base::StringToInt64(id_string, &value); |
| (*default_provider)->set_id(value); |
| } |
| - if (!prepopulate_id.empty()) { |
| + if (!prepopulate_id.empty() && !*is_managed) { |
| int value; |
| base::StringToInt(prepopulate_id, &value); |
| (*default_provider)->set_prepopulate_id(value); |
| @@ -1258,4 +1258,3 @@ void TemplateURLModel::NotifyObservers() { |
| FOR_EACH_OBSERVER(TemplateURLModelObserver, model_observers_, |
| OnTemplateURLModelChanged()); |
| } |
| - |