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

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

Issue 143333008: [Android] Remove the "Always show" button for blocked popups if the setting is controlled by policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue340704a
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 c68eed167010569913729172295bc3677cfeb5a5..05476119674cab2204c5fb449986f9183218302e 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -208,11 +208,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