| Index: components/search_engines/template_url_service.cc
|
| diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
|
| index fc889e8a3cd7aa3aa5bdb577cbd62939a898b296..a6b137b437402f5a9fca7504f08af464586fef23 100644
|
| --- a/components/search_engines/template_url_service.cc
|
| +++ b/components/search_engines/template_url_service.cc
|
| @@ -1281,7 +1281,9 @@ TemplateURLService::CreateTemplateURLFromTemplateURLAndSyncData(
|
| data.favicon_url = GURL(specifics.favicon_url());
|
| data.show_in_default_list = specifics.show_in_default_list();
|
| data.safe_for_autoreplace = specifics.safe_for_autoreplace();
|
| - base::SplitString(specifics.input_encodings(), ';', &data.input_encodings);
|
| + data.input_encodings = base::SplitString(
|
| + specifics.input_encodings(), ";",
|
| + base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
|
| // If the server data has duplicate encodings, we'll want to push an update
|
| // below to correct it. Note that we also fix this in
|
| // GetSearchProvidersUsingKeywordResult(), since otherwise we'd never correct
|
|
|