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

Unified Diff: chrome/browser/content_settings/host_content_settings_map_factory.cc

Issue 2344293002: [HBD] Detect user-initiated Flash download in a new window (Closed)
Patch Set: fix mac test Created 4 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/content_settings/host_content_settings_map_factory.cc
diff --git a/chrome/browser/content_settings/host_content_settings_map_factory.cc b/chrome/browser/content_settings/host_content_settings_map_factory.cc
index 546361be7cc31066392e32223cefa1b94e3621c8..b0db710bb01c4dad3061b0d8d32527a66e663857 100644
--- a/chrome/browser/content_settings/host_content_settings_map_factory.cc
+++ b/chrome/browser/content_settings/host_content_settings_map_factory.cc
@@ -66,8 +66,12 @@ scoped_refptr<RefcountedKeyedService>
// If off the record, retrieve the host content settings map of the parent
// profile in order to ensure the preferences have been migrated.
- if (profile->GetProfileType() == Profile::INCOGNITO_PROFILE)
+ // TODO(crbug.com/277296): Remove check that profile does not equal the
+ // original profile once TestingProfile::ForceIncognito is gone.
+ if (profile->GetProfileType() == Profile::INCOGNITO_PROFILE &&
+ profile != profile->GetOriginalProfile()) {
GetForProfile(profile->GetOriginalProfile());
+ }
scoped_refptr<HostContentSettingsMap> settings_map(new HostContentSettingsMap(
profile->GetPrefs(),
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/plugins/flash_download_interception.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698