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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 136763014: Merge r250184: [Android] Remove the "Always show" button for blocked popups if the setting is... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: x Created 6 years, 10 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 | « no previous file | chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index e317c04d11a9aa1357a4cb6ef3475a95701b920a..7e5f54847b22f851bb7b7476f38a2cc9a2342029 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -267,11 +267,8 @@ void TabAndroid::Observe(int type,
if (popup_blocker_helper)
num_popups = popup_blocker_helper->GetBlockedPopupsCount();
- if (num_popups > 0) {
- PopupBlockedInfoBarDelegate::Create(
- InfoBarService::FromWebContents(web_contents()),
- num_popups);
- }
+ if (num_popups > 0)
+ PopupBlockedInfoBarDelegate::Create(web_contents(), num_popups);
settings->SetBlockageHasBeenIndicated(CONTENT_SETTINGS_TYPE_POPUPS);
}
« no previous file with comments | « no previous file | chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698