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

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

Issue 2090283002: add experimental param to control the triggering threshold to default Always Translate checked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review issues Created 4 years, 6 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
« no previous file with comments | « components/translate/core/browser/BUILD.gn ('k') | components/translate/core/browser/translate_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8c803a5e743deb63c5dcb75bb4cb395ea10a24f8..d03e2590061debcd9317873d50af269330d1de37 100644
--- a/components/translate/core/browser/translate_prefs.h
+++ b/components/translate/core/browser/translate_prefs.h
@@ -35,6 +35,13 @@ namespace translate {
// Feature flag for "Translate UI 2016 Q2" project.
extern const base::Feature kTranslateUI2016Q2;
+// The trial (study) name in finch study config.
+extern const char kTranslateUI2016Q2TrialName[];
+
+// The name of the parameter for the number of translations, after which the
+// "Always Translate" checkbox default to checked.
+extern const char kAlwaysTranslateOfferThreshold[];
+
class TranslateAcceptLanguages;
// Allows updating denial times for a specific language while maintaining the
@@ -157,6 +164,7 @@ class TranslatePrefs {
const std::string& language);
bool ShouldAutoTranslate(const std::string& original_language,
std::string* target_language);
+
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
static void MigrateUserPrefs(PrefService* user_prefs,
const char* accept_languages_pref);
« no previous file with comments | « components/translate/core/browser/BUILD.gn ('k') | components/translate/core/browser/translate_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698