mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Add persistent HTML5 application cache support (issue #543).
- Standardize the approach for creating new directories. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@698 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -227,12 +227,13 @@ bool CefCookieManagerImpl::SetStoragePath(const CefString& path) {
|
||||
|
||||
scoped_refptr<SQLitePersistentCookieStore> persistent_store;
|
||||
if (!new_path.empty()) {
|
||||
if (file_util::CreateDirectory(new_path)) {
|
||||
const FilePath& cookie_path = new_path.AppendASCII("Cookies");
|
||||
persistent_store = new SQLitePersistentCookieStore(cookie_path, false);
|
||||
if (!file_util::PathExists(new_path) &&
|
||||
!file_util::CreateDirectory(new_path)) {
|
||||
NOTREACHED() << "Failed to create cookie storage directory";
|
||||
new_path.clear();
|
||||
} else {
|
||||
NOTREACHED() << "The cookie storage directory could not be created";
|
||||
storage_path_.clear();
|
||||
FilePath cookie_path = new_path.Append(FILE_PATH_LITERAL("Cookies"));
|
||||
persistent_store = new SQLitePersistentCookieStore(cookie_path, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user