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

Unified Diff: chrome/common/extensions/api/language_settings_private.idl

Issue 2261903002: Fix race condition in MD Settings Languages page causing inconsistent settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms Created 4 years, 4 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/common/extensions/api/language_settings_private.idl
diff --git a/chrome/common/extensions/api/language_settings_private.idl b/chrome/common/extensions/api/language_settings_private.idl
index f1ac49cf3eac931cb4e610e007feedb2fd8b223b..8db6dc4230a109ae94a69f543cb3b1a39d102591 100644
--- a/chrome/common/extensions/api/language_settings_private.idl
+++ b/chrome/common/extensions/api/language_settings_private.idl
@@ -80,9 +80,12 @@ namespace languageSettingsPrivate {
// Gets languages available for translate, spell checking, input and locale.
static void getLanguageList(GetLanguageListCallback callback);
- // Sets the accepted languages, used to decide which languages to translate,
- // generate the Accept-Language header, etc.
- static void setLanguageList(DOMString[] languageCodes);
+ // Enables a language, adding it to the Accept-Language list (used to decide
+ // which languages to translate, generate the Accept-Language header, etc.).
+ static void enableLanguage(DOMString languageCode);
+
+ // Disables a language, removing it from the Accept-Language list.
+ static void disableLanguage(DOMString languageCode);
// Gets the current status of the chosen spell check dictionaries.
static void getSpellcheckDictionaryStatuses(

Powered by Google App Engine
This is Rietveld 408576698