summaryrefslogtreecommitdiffstats
path: root/chrome/browser/in_process_webkit/webkit_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/in_process_webkit/webkit_context.cc')
-rw-r--r--chrome/browser/in_process_webkit/webkit_context.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/in_process_webkit/webkit_context.cc b/chrome/browser/in_process_webkit/webkit_context.cc
index be07568..b9cf36f 100644
--- a/chrome/browser/in_process_webkit/webkit_context.cc
+++ b/chrome/browser/in_process_webkit/webkit_context.cc
@@ -5,12 +5,14 @@
#include "chrome/browser/in_process_webkit/webkit_context.h"
#include "chrome/browser/chrome_thread.h"
+#include "chrome/browser/profile.h"
-WebKitContext::WebKitContext(const FilePath& data_path, bool is_incognito)
- : data_path_(data_path),
- is_incognito_(is_incognito),
+WebKitContext::WebKitContext(Profile* profile)
+ : data_path_(profile->IsOffTheRecord() ? FilePath() : profile->GetPath()),
+ is_incognito_(profile->IsOffTheRecord()),
ALLOW_THIS_IN_INITIALIZER_LIST(
- dom_storage_context_(new DOMStorageContext(this))) {
+ dom_storage_context_(new DOMStorageContext(this))),
+ indexed_db_context_(new IndexedDBContext()) {
}
WebKitContext::~WebKitContext() {