mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 11:57:48 -03:00
Update chrome_content_browser_client.cc
This commit is contained in:
parent
256d2e7d8f
commit
5349437ef1
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue