mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Create temporary cache_path directory if none is specified (issue #735).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@814 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -188,6 +188,14 @@ bool CefContext::Initialize(const CefMainArgs& args,
|
||||
NOTREACHED() << "The cache_path directory could not be created";
|
||||
cache_path_ = FilePath();
|
||||
}
|
||||
if (cache_path_.empty()) {
|
||||
// Create and use a temporary directory.
|
||||
if (cache_temp_dir_.CreateUniqueTempDir()) {
|
||||
cache_path_ = cache_temp_dir_.path();
|
||||
} else {
|
||||
NOTREACHED() << "Failed to create temporary cache_path directory";
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(OS_WIN)
|
||||
if (settings.multi_threaded_message_loop) {
|
||||
|
Reference in New Issue
Block a user