diff options
author | alshabalin <alshabalin@yandex-team.ru> | 2015-07-23 01:03:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-23 08:03:53 +0000 |
commit | e6212ac6b82fe6e2d73cd1e112b016fa45343927 (patch) | |
tree | 86552dc35443a8c6d5719d6d2552345fbdf8634d /components/search_engines/search_terms_data.h | |
parent | 1bc533e870decf7a6330bd3ef11504968c1e8391 (diff) | |
download | chromium_src-e6212ac6b82fe6e2d73cd1e112b016fa45343927.zip chromium_src-e6212ac6b82fe6e2d73cd1e112b016fa45343927.tar.gz chromium_src-e6212ac6b82fe6e2d73cd1e112b016fa45343927.tar.bz2 |
Unpunycode search keywords and short names.
When automatically generating a new search engine, convert keywords
and short names from punycode to unicode.
BUG=510832
Review URL: https://codereview.chromium.org/1238683003
Cr-Commit-Position: refs/heads/master@{#340053}
Diffstat (limited to 'components/search_engines/search_terms_data.h')
-rw-r--r-- | components/search_engines/search_terms_data.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/search_engines/search_terms_data.h b/components/search_engines/search_terms_data.h index 64d0f12..2dcdd41 100644 --- a/components/search_engines/search_terms_data.h +++ b/components/search_engines/search_terms_data.h @@ -74,6 +74,11 @@ class SearchTermsData { // GOOGLE_IMAGE_SEARCH_SOURCE. virtual std::string GoogleImageSearchSource() const; + // Returns a string with languages understood by the user. + // Determining this requires accessing the Profile, so this can only ever be + // non-empty for UIThreadSearchTermsData. + virtual std::string GetAcceptLanguages() const; + private: DISALLOW_COPY_AND_ASSIGN(SearchTermsData); }; |