Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6928)

Unified Diff: components/translate/core/browser/translate_prefs.h

Issue 1525203003: [Translate] Factor out access to Accept-Languages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@translate-manager-unit
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/translate/core/browser/translate_prefs.h
diff --git a/components/translate/core/browser/translate_prefs.h b/components/translate/core/browser/translate_prefs.h
index 0cbed022b766bbf03c19ec458368fddfc1377f7a..951a759733c38bb3e95981f9463d34b0fc68a1f3 100644
--- a/components/translate/core/browser/translate_prefs.h
+++ b/components/translate/core/browser/translate_prefs.h
@@ -134,6 +134,10 @@ class TranslatePrefs {
// Gets the language list of the language settings.
void GetLanguageList(std::vector<std::string>* languages);
+ // Gets the list of accept-languages. This differs from GetLanguageList only
+ // on ChromeOS.
+ void GetAcceptLanguageList(std::vector<std::string>* languages) const;
+
// Updates the language list of the language settings.
void UpdateLanguageList(const std::vector<std::string>& languages);

Powered by Google App Engine
This is Rietveld 408576698