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

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

Issue 26263002: [InfoBar] Always close native infobars from C++. Part II (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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 | « chrome/browser/ui/android/infobars/infobar_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/infobars/translate_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/translate_infobar.cc b/chrome/browser/ui/android/infobars/translate_infobar.cc
index 516da32f563a0d258127c5279b87fd1485b43465..a8cd9596b9f07973b8194a9c23e63b7ee61bb601 100644
--- a/chrome/browser/ui/android/infobars/translate_infobar.cc
+++ b/chrome/browser/ui/android/infobars/translate_infobar.cc
@@ -59,8 +59,6 @@ void TranslateInfoBar::ProcessButton(
return; // We're closing; don't call anything, it might access the owner.
if (action == InfoBarAndroid::ACTION_TRANSLATE) {
- // Do not close the infobar upon translate since it will be replaced by a
- // different one which will close this current infobar.
delegate_->Translate();
return;
}
« no previous file with comments | « chrome/browser/ui/android/infobars/infobar_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698