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

Unified Diff: components/translate/core/browser/translate_manager.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: Fix CrOS build 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_manager.h
diff --git a/components/translate/core/browser/translate_manager.h b/components/translate/core/browser/translate_manager.h
index 346e83122d70878860823f5ae6f0b8229eafd2c8..c0990028a9ce005c4909aaaf2070cfb2358af944 100644
--- a/components/translate/core/browser/translate_manager.h
+++ b/components/translate/core/browser/translate_manager.h
@@ -54,8 +54,7 @@ class TranslateManager {
// the UI language
// the accept-language list
// If no language is found then an empty string is returned.
- static std::string GetTargetLanguage(
- const std::vector<std::string>& accept_languages_list);
+ static std::string GetTargetLanguage(const TranslatePrefs* prefs);
// Returns the language to automatically translate to. |original_language| is
// the webpage's original language.
« no previous file with comments | « chrome/browser/translate/translate_service.cc ('k') | components/translate/core/browser/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698