mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 01:26:03 +01:00
15 lines
894 B
Diff
15 lines
894 B
Diff
diff --git content/browser/renderer_host/render_process_host_impl.cc content/browser/renderer_host/render_process_host_impl.cc
|
|
index 1dcae1e41f4dc..43951c1c55f1a 100644
|
|
--- content/browser/renderer_host/render_process_host_impl.cc
|
|
+++ content/browser/renderer_host/render_process_host_impl.cc
|
|
@@ -1624,7 +1624,8 @@ bool RenderProcessHostImpl::Init() {
|
|
// 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(
|