2024-01-18 03:33:27 +01:00
|
|
|
diff --git content/browser/renderer_host/render_process_host_impl.cc content/browser/renderer_host/render_process_host_impl.cc
|
2024-05-23 03:52:35 +02:00
|
|
|
index 83defaaaad55d..76486ceed16e5 100644
|
2024-01-18 03:33:27 +01:00
|
|
|
--- content/browser/renderer_host/render_process_host_impl.cc
|
|
|
|
+++ content/browser/renderer_host/render_process_host_impl.cc
|
2024-05-23 03:52:35 +02:00
|
|
|
@@ -1628,7 +1628,8 @@ bool RenderProcessHostImpl::Init() {
|
2024-01-18 03:33:27 +01:00
|
|
|
// initialized because in tests the factory may never have been initialized.
|
|
|
|
if (!GetBrowserContext()->IsOffTheRecord() &&
|
|
|
|
!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
|
|
|
- switches::kDisableGpuShaderDiskCache)) {
|
|
|
|
+ switches::kDisableGpuShaderDiskCache) &&
|
|
|
|
+ !storage_partition_impl_->GetPath().empty()) {
|
|
|
|
if (auto* cache_factory = GetGpuDiskCacheFactorySingleton()) {
|
|
|
|
for (const gpu::GpuDiskCacheType type : gpu::kGpuDiskCacheTypes) {
|
|
|
|
auto handle = cache_factory->GetCacheHandle(
|