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

Unified Diff: chrome/browser/ui/android/infobars/translate_compact_infobar.cc

Issue 2892143002: Remove all feature flag checks in Delegate. (Closed)
Patch Set: 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: chrome/browser/ui/android/infobars/translate_compact_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/translate_compact_infobar.cc b/chrome/browser/ui/android/infobars/translate_compact_infobar.cc
index 5d0a6d662b0e89874e3511bf676fc726c451148e..5fe972f339ea27c76dd33dbfcc2b6183392ed6d1 100644
--- a/chrome/browser/ui/android/infobars/translate_compact_infobar.cc
+++ b/chrome/browser/ui/android/infobars/translate_compact_infobar.cc
@@ -71,7 +71,7 @@ void TranslateCompactInfoBar::ProcessButton(int action) {
}
} else if (action == InfoBarAndroid::ACTION_TRANSLATE_SHOW_ORIGINAL) {
action_flags_ |= FLAG_REVERT;
- delegate->RevertTranslation();
+ delegate->RevertWithoutClosingInfobar();
} else if (action == InfoBarAndroid::ACTION_CANCEL) {
delegate->TranslationDeclined();
} else {

Powered by Google App Engine
This is Rietveld 408576698