Don't create 'GPUCache' and 'databases' directories when cache-path is unspecified (issue #2289)

This commit is contained in:
Marshall Greenblatt
2017-10-30 16:52:39 -04:00
parent 486e69e23b
commit 9f7bdcf7d5
3 changed files with 29 additions and 3 deletions

View File

@ -48,6 +48,12 @@ void ClientAppBrowser::OnBeforeCommandLineProcessing(
command_line->AppendSwitchWithValue("top-chrome-md", "non-material");
}
if (!command_line->HasSwitch(switches::kCachePath) &&
!command_line->HasSwitch("disable-gpu-shader-disk-cache")) {
// Don't create a "GPUCache" directory when cache-path is unspecified.
command_line->AppendSwitch("disable-gpu-shader-disk-cache");
}
DelegateSet::iterator it = delegates_.begin();
for (; it != delegates_.end(); ++it)
(*it)->OnBeforeCommandLineProcessing(this, command_line);