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

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

Issue 1312453005: Removed Profile::GetHostContentSettingsMap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed patch conflict Created 5 years, 3 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 25709468eb164b3d321954704e6a0e73abe965ea..aa695c98d31afb7c26b99fd2089bd45f1841bd62 100644
--- a/chrome/browser/ui/content_settings/content_setting_image_model.cc
+++ b/chrome/browser/ui/content_settings/content_setting_image_model.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/content_settings/content_setting_image_model.h"
+#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/prerender/prerender_manager.h"
#include "chrome/browser/profiles/profile.h"
@@ -197,7 +198,8 @@ void ContentSettingBlockedImageModel::UpdateFromWebContents(
// due to auto-blocking NPAPI plugins).
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
- HostContentSettingsMap* map = profile->GetHostContentSettingsMap();
+ HostContentSettingsMap* map =
+ HostContentSettingsMapFactory::GetForProfile(profile);
if (type == CONTENT_SETTINGS_TYPE_PLUGINS) {
GURL url = web_contents->GetURL();
if (map->GetContentSetting(url, url, type, std::string()) !=

Powered by Google App Engine
This is Rietveld 408576698