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

Unified Diff: components/content_settings/core/browser/host_content_settings_map.h

Issue 1605453003: Ensure content settings aren't persisted in the guest profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: components/content_settings/core/browser/host_content_settings_map.h
diff --git a/components/content_settings/core/browser/host_content_settings_map.h b/components/content_settings/core/browser/host_content_settings_map.h
index 0c12c48e05b2289690c5204aebe31ac818b154ea..b31228e5857f80b3d33f81e53f099aab86eea0b8 100644
--- a/components/content_settings/core/browser/host_content_settings_map.h
+++ b/components/content_settings/core/browser/host_content_settings_map.h
@@ -62,8 +62,11 @@ class HostContentSettingsMap : public content_settings::Observer,
};
// This should be called on the UI thread, otherwise |thread_checker_| handles
- // CalledOnValidThread() wrongly.
- HostContentSettingsMap(PrefService* prefs, bool incognito);
+ // CalledOnValidThread() wrongly. Only one (or neither) of
+ // |is_incognito_profile| and |is_guest_profile| should be true.
+ HostContentSettingsMap(PrefService* prefs,
+ bool is_incognito_profile,
+ bool is_guest_profile);
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);

Powered by Google App Engine
This is Rietveld 408576698