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

Unified Diff: chrome/browser/ui/views/location_bar/content_setting_image_view.cc

Issue 9479008: Re-factor location bar/toolbar code to get rid of the browser dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: call right overloaded method Created 8 years, 9 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/views/location_bar/content_setting_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
index cac61849ad985c289943e7f496e10a8b0312c768..589471f920115c09fff8f5972550b638ae415425 100644
--- a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
@@ -6,7 +6,6 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
-#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/content_settings/content_setting_bubble_model.h"
#include "chrome/browser/ui/content_settings/content_setting_image_model.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
@@ -178,10 +177,10 @@ void ContentSettingImageView::OnMouseReleased(const views::MouseEvent& event) {
pause_animation_ = true;
}
- Profile* profile = parent_->browser()->profile();
+ Profile* profile = parent_->profile();
ContentSettingBubbleContents* bubble = new ContentSettingBubbleContents(
ContentSettingBubbleModel::CreateContentSettingBubbleModel(
- parent_->browser(),
+ parent_->delegate()->GetContentSettingBubbleModelDelegate(),
tab_contents,
profile,
content_setting_image_model_->get_content_settings_type()),
@@ -189,7 +188,7 @@ void ContentSettingImageView::OnMouseReleased(const views::MouseEvent& event) {
tab_contents->web_contents(),
this,
views::BubbleBorder::TOP_RIGHT);
- bubble_widget_ = browser::CreateViewsBubble(bubble);
+ bubble_widget_ = parent_->delegate()->CreateViewsBubble(bubble);
bubble_widget_->AddObserver(this);
bubble->Show();
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/click_handler.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698