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

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

Issue 1978203002: Translate: Remove the legacy pref 'translate_language_blacklist' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: 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 65c3befcf10553364b948acd4048a986368b779a..8c803a5e743deb63c5dcb75bb4cb395ea10a24f8 100644
--- a/components/translate/core/browser/translate_prefs.h
+++ b/components/translate/core/browser/translate_prefs.h
@@ -99,10 +99,6 @@ class TranslatePrefs {
void BlockLanguage(const std::string& original_language);
void UnblockLanguage(const std::string& original_language);
- // Removes a language from the old blacklist. Only used internally for
- // diagnostics. Don't use this if there is no special reason.
- void RemoveLanguageFromLegacyBlacklist(const std::string& original_language);
-
bool IsSiteBlacklisted(const std::string& site) const;
void BlacklistSite(const std::string& site);
void RemoveSiteFromBlacklist(const std::string& site);
@@ -167,9 +163,6 @@ class TranslatePrefs {
private:
friend class TranslatePrefsTest;
- FRIEND_TEST_ALL_PREFIXES(TranslatePrefsTest, CreateBlockedLanguages);
- FRIEND_TEST_ALL_PREFIXES(TranslatePrefsTest,
- CreateBlockedLanguagesNonEnglishUI);
// Merges two language sets to migrate to the language setting UI.
static void CreateBlockedLanguages(

Powered by Google App Engine
This is Rietveld 408576698