| Index: components/autofill/content/browser/risk/fingerprint.cc
|
| diff --git a/components/autofill/content/browser/risk/fingerprint.cc b/components/autofill/content/browser/risk/fingerprint.cc
|
| index b4ea95211f2374595260eaeeeb336871665dff24..dfee9b5e76443ed621c07548b3ec56927d39b8d7 100644
|
| --- a/components/autofill/content/browser/risk/fingerprint.cc
|
| +++ b/components/autofill/content/browser/risk/fingerprint.cc
|
| @@ -113,12 +113,10 @@ void AddPluginsToFingerprint(const std::vector<content::WebPluginInfo>& plugins,
|
| void AddAcceptLanguagesToFingerprint(
|
| const std::string& accept_languages_str,
|
| Fingerprint::MachineCharacteristics* machine) {
|
| - std::vector<std::string> accept_languages;
|
| - base::SplitString(accept_languages_str, ',', &accept_languages);
|
| - for (std::vector<std::string>::const_iterator it = accept_languages.begin();
|
| - it != accept_languages.end(); ++it) {
|
| - machine->add_requested_language(*it);
|
| - }
|
| + for (const std::string& lang :
|
| + base::SplitString(accept_languages_str, ",", base::TRIM_WHITESPACE,
|
| + base::SPLIT_WANT_ALL))
|
| + machine->add_requested_language(lang);
|
| }
|
|
|
| // This function writes
|
|
|