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

Unified Diff: chrome/browser/blocked_popup_container.cc

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.cc
diff --git a/chrome/browser/blocked_popup_container.cc b/chrome/browser/blocked_popup_container.cc
index 65d2e093fda0857f0b4770965e2662d0448bcefb..13bd6a7c3ee5cd939d6c9c1ac7f9bd82114dfdf3 100644
--- a/chrome/browser/blocked_popup_container.cc
+++ b/chrome/browser/blocked_popup_container.cc
@@ -14,7 +14,7 @@
BlockedPopupContainer* BlockedPopupContainer::Create(
TabContents* owner, Profile* profile) {
BlockedPopupContainer* container =
- new BlockedPopupContainer(owner, profile->GetPrefs());
+ new BlockedPopupContainer(owner, profile);
BlockedPopupContainerView* view =
BlockedPopupContainerView::Create(container);
container->set_view(view);
@@ -25,7 +25,7 @@ BlockedPopupContainer* BlockedPopupContainer::Create(
BlockedPopupContainer* BlockedPopupContainer::Create(
TabContents* owner, Profile* profile, BlockedPopupContainerView* view) {
BlockedPopupContainer* container =
- new BlockedPopupContainer(owner, profile->GetPrefs());
+ new BlockedPopupContainer(owner, profile);
container->set_view(view);
return container;
}
@@ -346,11 +346,12 @@ void BlockedPopupContainer::EraseDataForPopupAndUpdateUI(
// private:
BlockedPopupContainer::BlockedPopupContainer(TabContents* owner,
- PrefService* prefs)
+ Profile* profile)
: owner_(owner),
- prefs_(prefs),
+ prefs_(profile->GetPrefs()),
has_been_dismissed_(false),
- view_(NULL) {
+ view_(NULL),
+ profile_(profile) {
// Copy whitelist pref into local member that's easier to use.
const ListValue* whitelist_pref =
prefs_->GetList(prefs::kPopupWhitelistedHosts);

Powered by Google App Engine
This is Rietveld 408576698