Update chrome_content_browser_client.cc

This commit is contained in:
Alexander David Frick 2022-08-02 05:39:00 -05:00 committed by GitHub
parent 256d2e7d8f
commit 5349437ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -443,6 +443,7 @@
#include "chrome/browser/devtools/chrome_devtools_manager_delegate.h" #include "chrome/browser/devtools/chrome_devtools_manager_delegate.h"
#include "chrome/browser/devtools/devtools_window.h" #include "chrome/browser/devtools/devtools_window.h"
#include "chrome/browser/media/unified_autoplay_config.h" #include "chrome/browser/media/unified_autoplay_config.h"
#include "chrome/browser/page_info/about_this_site_side_panel_throttle.h"
#include "chrome/browser/search/instant_service.h" #include "chrome/browser/search/instant_service.h"
#include "chrome/browser/search/instant_service_factory.h" #include "chrome/browser/search/instant_service_factory.h"
#include "chrome/browser/serial/chrome_serial_delegate.h" #include "chrome/browser/serial/chrome_serial_delegate.h"
@ -4619,6 +4620,9 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
MaybeAddThrottle(MaybeCreateNavigationAblationThrottle(handle), &throttles); MaybeAddThrottle(MaybeCreateNavigationAblationThrottle(handle), &throttles);
#if !BUILDFLAG(IS_ANDROID)
MaybeAddThrottle(MaybeCreateAboutThisSiteThrottleFor(handle), &throttles);
#endif
return throttles; return throttles;
} }
@ -6254,7 +6258,9 @@ bool ChromeContentBrowserClient::ArePersistentMediaDeviceIDsAllowed(
// Persistent MediaDevice IDs are allowed if cookies are allowed. // Persistent MediaDevice IDs are allowed if cookies are allowed.
return CookieSettingsFactory::GetForProfile( return CookieSettingsFactory::GetForProfile(
Profile::FromBrowserContext(browser_context)) Profile::FromBrowserContext(browser_context))
->IsFullCookieAccessAllowed(url, site_for_cookies, top_frame_origin); ->IsFullCookieAccessAllowed(
url, site_for_cookies, top_frame_origin,
content_settings::CookieSettings::QueryReason::kSiteStorage);
} }
#if !BUILDFLAG(IS_ANDROID) #if !BUILDFLAG(IS_ANDROID)