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

Unified Diff: chrome/browser/signin/chrome_signin_client.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/signin/chrome_signin_client.cc
diff --git a/chrome/browser/signin/chrome_signin_client.cc b/chrome/browser/signin/chrome_signin_client.cc
index 8e49f33162532ffc549d0dbdd17402ff6a0d36a3..3379a09728cee805e3740ed3b7030a63ba3338c8 100644
--- a/chrome/browser/signin/chrome_signin_client.cc
+++ b/chrome/browser/signin/chrome_signin_client.cc
@@ -9,6 +9,7 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
+#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/profiles/profile_metrics.h"
@@ -206,12 +207,14 @@ bool ChromeSigninClient::AreSigninCookiesAllowed() {
void ChromeSigninClient::AddContentSettingsObserver(
content_settings::Observer* observer) {
- profile_->GetHostContentSettingsMap()->AddObserver(observer);
+ HostContentSettingsMapFactory::GetForProfile(profile_)
+ ->AddObserver(observer);
}
void ChromeSigninClient::RemoveContentSettingsObserver(
content_settings::Observer* observer) {
- profile_->GetHostContentSettingsMap()->RemoveObserver(observer);
+ HostContentSettingsMapFactory::GetForProfile(profile_)
+ ->RemoveObserver(observer);
}
scoped_ptr<SigninClient::CookieChangedSubscription>

Powered by Google App Engine
This is Rietveld 408576698