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

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

Issue 2892143002: Remove all feature flag checks in Delegate. (Closed)
Patch Set: fix Created 3 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_infobar_delegate.h
diff --git a/components/translate/core/browser/translate_infobar_delegate.h b/components/translate/core/browser/translate_infobar_delegate.h
index 5e32a72d88eb5849bfef1e0e4bbef9beb7ba4ee6..e0f1ea18b6ce8a5849db14791ec48d770842fdf9 100644
--- a/components/translate/core/browser/translate_infobar_delegate.h
+++ b/components/translate/core/browser/translate_infobar_delegate.h
@@ -76,9 +76,6 @@ class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
TranslateErrors::Type error_type,
bool triggered_from_menu);
- // Returns true if compact translate UI is enabled.
- static bool IsCompactUIEnabled();
-
// Returns the number of languages supported.
size_t num_languages() const { return ui_delegate_.GetNumberOfLanguages(); }
@@ -132,6 +129,7 @@ class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
virtual void Translate();
virtual void RevertTranslation();
+ void RevertWithoutClosingInfobar();
void ReportLanguageDetectionError();
// Called when the user declines to translate a page, by either closing the

Powered by Google App Engine
This is Rietveld 408576698