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

Unified Diff: chrome/browser/blocked_popup_container.h

Issue 149277: GTK Themes: Theme the popup notification. (Closed)
Patch Set: lint + comments Created 11 years, 5 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/blocked_popup_container.h
diff --git a/chrome/browser/blocked_popup_container.h b/chrome/browser/blocked_popup_container.h
index c63243802c398c7fc8a6e9333c58590ee9ea52fc..ebffd23d6fee39ec87f22b44f28c3f3718ee5427 100644
--- a/chrome/browser/blocked_popup_container.h
+++ b/chrome/browser/blocked_popup_container.h
@@ -81,6 +81,9 @@ class BlockedPopupContainer : public TabContentsDelegate,
static void RegisterUserPrefs(PrefService* prefs);
+ // Returns the profile associated with the Browser this container exists in.
+ Profile* profile() const { return profile_; }
+
// Sets this BlockedPopupContainer's view. BlockedPopupContainer now owns
// |view| and is responsible for calling Destroy() on it.
void set_view(BlockedPopupContainerView* view) { view_ = view; }
@@ -229,7 +232,7 @@ class BlockedPopupContainer : public TabContentsDelegate,
typedef std::set<std::string> Whitelist;
// Creates a container for a certain TabContents:
- BlockedPopupContainer(TabContents* owner, PrefService* prefs);
+ BlockedPopupContainer(TabContents* owner, Profile* profile);
// Either hides the view if there are no popups, or updates the label if
// there are.
@@ -267,6 +270,9 @@ class BlockedPopupContainer : public TabContentsDelegate,
// Our platform specific view.
BlockedPopupContainerView* view_;
+ // The profile for the browser associated with the container.
+ Profile* profile_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer);
};
« no previous file with comments | « no previous file | chrome/browser/blocked_popup_container.cc » ('j') | chrome/browser/gtk/blocked_popup_container_view_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698