- Eliminate use of scoped directories (issue #670).

- Create a temporary cache_path directory if none is specified (issue #735).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@827 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-10-01 21:49:08 +00:00
parent 7a0ff637f0
commit 49640d17a3
8 changed files with 28 additions and 40 deletions

View File

@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "libcef/browser_database_system.h"
#include "libcef/cef_context.h"
#include "base/auto_reset.h"
#include "base/bind.h"
@ -37,9 +38,8 @@ BrowserDatabaseSystem::BrowserDatabaseSystem()
open_connections_(new webkit_database::DatabaseConnectionsWrapper) {
DCHECK(!instance_);
instance_ = this;
CHECK(temp_dir_.CreateUniqueTempDir());
db_tracker_ =
new DatabaseTracker(temp_dir_.path(), false, NULL, NULL, NULL);
new DatabaseTracker(_Context->cache_path(), false, NULL, NULL, NULL);
db_tracker_->AddObserver(this);
db_thread_.Start();
db_thread_proxy_ = db_thread_.message_loop_proxy();