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

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

Issue 1903593002: Allows to manually change the stored permanent country in Variations from the translate-internals d… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UI polishing Created 4 years, 8 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/chrome_translate_client.h
diff --git a/chrome/browser/translate/chrome_translate_client.h b/chrome/browser/translate/chrome_translate_client.h
index 2bf67d0d77995161f3f997894688ea7317f1c8a4..9a48fdb0236aaf7fe923adb009d0393ee4e0a46b 100644
--- a/chrome/browser/translate/chrome_translate_client.h
+++ b/chrome/browser/translate/chrome_translate_client.h
@@ -56,6 +56,12 @@ class ChromeTranslateClient
static scoped_ptr<translate::TranslatePrefs> CreateTranslatePrefs(
PrefService* prefs);
+ // Helper method to force an override of
+ // kVariationsPermanentConsistencyCountry. Returns true if the variable has
Alexei Svitkine (slow) 2016/04/20 20:30:23 Nit: No need to say "Helper method". Also, the pre
hamelphi 2016/04/20 21:39:46 Done.
+ // been updated. Return false if the override country is the same as the
+ // stored variable, or if the update failed for any other reason.
+ static bool OverrideStoredPermanentCountry(const std::string& country);
+
// Helper method to return the TranslateAcceptLanguages instance associated
// with |browser_context|.
static translate::TranslateAcceptLanguages* GetTranslateAcceptLanguages(

Powered by Google App Engine
This is Rietveld 408576698