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

Unified Diff: chrome/browser/ui/content_settings/content_setting_image_model.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context Created 9 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/ui/content_settings/content_setting_image_model.cc
diff --git a/chrome/browser/ui/content_settings/content_setting_image_model.cc b/chrome/browser/ui/content_settings/content_setting_image_model.cc
index 80eaf8a59aa974bc51be823a9f32ef197e941e22..cbd473fb125935c1d17d80f872a78e931401937b 100644
--- a/chrome/browser/ui/content_settings/content_setting_image_model.cc
+++ b/chrome/browser/ui/content_settings/content_setting_image_model.cc
@@ -111,12 +111,12 @@ void ContentSettingBlockedImageModel::UpdateFromTabContents(
const int* explanatory_string_ids = kBlockedExplanatoryTextIDs;
// If a content type is blocked by default and was accessed, display the
// accessed icon.
- TabSpecificContentSettings* content_settings =
- TabContentsWrapper::GetCurrentWrapperForContents(tab_contents)->
- content_settings();
+ TabContentsWrapper* wrapper =
+ TabContentsWrapper::GetCurrentWrapperForContents(tab_contents);
+ TabSpecificContentSettings* content_settings = wrapper->content_settings();
if (!content_settings->IsContentBlocked(get_content_settings_type())) {
if (!content_settings->IsContentAccessed(get_content_settings_type()) ||
- (tab_contents->profile()->GetHostContentSettingsMap()->
+ (wrapper->profile()->GetHostContentSettingsMap()->
GetDefaultContentSetting(get_content_settings_type()) !=
CONTENT_SETTING_BLOCK))
return;

Powered by Google App Engine
This is Rietveld 408576698