2024-01-17 21:33:27 -05:00
|
|
|
diff --git content/browser/renderer_host/render_process_host_impl.cc content/browser/renderer_host/render_process_host_impl.cc
|
2024-02-22 13:36:15 -05:00
|
|
|
index fd63bad192e9b..262a286478b67 100644
|
2024-01-17 21:33:27 -05:00
|
|
|
--- content/browser/renderer_host/render_process_host_impl.cc
|
|
|
|
+++ content/browser/renderer_host/render_process_host_impl.cc
|
2024-02-22 13:36:15 -05:00
|
|
|
@@ -1623,7 +1623,8 @@ bool RenderProcessHostImpl::Init() {
|
2024-01-17 21:33:27 -05: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(
|