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

Unified Diff: chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h

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
Index: chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h
diff --git a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h
index 66c98ebac139b815a0ad9cb31739ce960fe3284a..a9c1800c72a11f32e6410435ed24d88c1cd6cbf0 100644
--- a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h
+++ b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h
@@ -6,19 +6,26 @@
#define CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGATE_H_
#include "chrome/browser/infobars/confirm_infobar_delegate.h"
+#include "url/gurl.h"
-class InfoBarService;
+namespace content {
+class WebContents;
+} // namespace content
+
+class HostContentSettingsMap;
class PopupBlockedInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
// Creates a popup blocked infobar and delegate and adds the infobar to
// |infobar_service|.
- static void Create(InfoBarService* infobar_service, int num_popups);
+ static void Create(content::WebContents* web_contents, int num_popups);
virtual ~PopupBlockedInfoBarDelegate();
private:
- explicit PopupBlockedInfoBarDelegate(int num_popups);
+ PopupBlockedInfoBarDelegate(int num_popups,
+ const GURL& url,
+ HostContentSettingsMap* map);
// ConfirmInfoBarDelegate:
virtual int GetIconID() const OVERRIDE;
@@ -29,6 +36,9 @@ class PopupBlockedInfoBarDelegate : public ConfirmInfoBarDelegate {
virtual bool Accept() OVERRIDE;
int num_popups_;
+ GURL url_;
+ HostContentSettingsMap* map_;
+ bool can_show_popups_;
DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate);
};
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698