diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 00:21:39 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 00:21:39 +0000 |
commit | f4ebe772e28369908c70e2e79f052d043c6f8eeb (patch) | |
tree | 8abbccc21509118c1228bc116a6f0f250759a801 /chrome/browser/language_usage_metrics.cc | |
parent | 11e45efce9cc17e1b2b76e6a636cc63b2c021324 (diff) | |
download | chromium_src-f4ebe772e28369908c70e2e79f052d043c6f8eeb.zip chromium_src-f4ebe772e28369908c70e2e79f052d043c6f8eeb.tar.gz chromium_src-f4ebe772e28369908c70e2e79f052d043c6f8eeb.tar.bz2 |
Move string tokenizer to base/strings.
BUG=
Review URL: https://codereview.chromium.org/12087091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/language_usage_metrics.cc')
-rw-r--r-- | chrome/browser/language_usage_metrics.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/language_usage_metrics.cc b/chrome/browser/language_usage_metrics.cc index b53c25f..ae4faa0 100644 --- a/chrome/browser/language_usage_metrics.cc +++ b/chrome/browser/language_usage_metrics.cc @@ -7,8 +7,8 @@ #include <algorithm> #include "base/metrics/histogram.h" -#include "base/string_tokenizer.h" #include "base/string_util.h" +#include "base/strings/string_tokenizer.h" namespace { void RecordAcceptLanguage(Language language) { @@ -43,7 +43,7 @@ void LanguageUsageMetrics::RecordApplicationLanguage( void LanguageUsageMetrics::ParseAcceptLanguages( const std::string& accept_languages, std::set<Language>* languages) { languages->clear(); - StringTokenizer locales(accept_languages, ","); + base::StringTokenizer locales(accept_languages, ","); while (locales.GetNext()) { const Language language = ToLanguage(locales.token()); if (language != UNKNOWN_LANGUAGE) { @@ -54,7 +54,7 @@ void LanguageUsageMetrics::ParseAcceptLanguages( // static Language LanguageUsageMetrics::ToLanguage(const std::string& locale) { - StringTokenizer parts(locale, "-_"); + base::StringTokenizer parts(locale, "-_"); if (!parts.GetNext()) { return UNKNOWN_LANGUAGE; } |