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

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

Issue 2819793002: Translate: do not show the context menu entry when the feature is disabled (Closed)
Patch Set: some more include path changes for ios/android Created 3 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: 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 ada3725d4f9d683a1bf7a06e3d5ef50a88b62585..61a35d83a83cb4f59b4bfcd6fb3defc5a5a3e41e 100644
--- a/components/translate/core/browser/translate_prefs.h
+++ b/components/translate/core/browser/translate_prefs.h
@@ -94,6 +94,9 @@ class TranslatePrefs {
const char* accept_languages_pref,
const char* preferred_languages_pref);
+ // Checks if the translate feature is enabled.
+ bool IsEnabled() const;
+
// Sets the country that the application is run in. Determined by the
// VariationsService, can be left empty. Used by TranslateExperiment.
void SetCountry(const std::string& country);
« no previous file with comments | « components/translate/core/browser/translate_pref_names.cc ('k') | components/translate/core/browser/translate_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698