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

Unified Diff: chrome/browser/translate/translate_prefs.h

Issue 23923007: Bug fix: Append a language to the list after blocking it for Translate on Chrome OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 7 years, 3 months 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: chrome/browser/translate/translate_prefs.h
diff --git a/chrome/browser/translate/translate_prefs.h b/chrome/browser/translate/translate_prefs.h
index f78aa282fb06cb938d05483633714c6addf7c0db..fa78739156004d31d35744c37a15cf44fd5d1377 100644
--- a/chrome/browser/translate/translate_prefs.h
+++ b/chrome/browser/translate/translate_prefs.h
@@ -79,6 +79,12 @@ class TranslatePrefs {
void IncrementTranslationAcceptedCount(const std::string& language);
void ResetTranslationAcceptedCount(const std::string& language);
+ // Returns the language list of chrome://settings/languages.
Evan Stade 2013/09/12 22:53:41 nit: s/returns/sets/
hajimehoshi 2013/09/13 01:39:19 Done.
+ void GetLanguageList(std::vector<std::string>* languages);
+
+ // Updates the language list of chrome://settings/languages.
+ void UpdateLanguageList(const std::vector<std::string>& languages);
+
static bool CanTranslateLanguage(
Profile* profile, const std::string& language);
static bool ShouldAutoTranslate(PrefService* user_prefs,

Powered by Google App Engine
This is Rietveld 408576698