Index: chrome/browser/in_process_webkit/webkit_context.cc |
diff --git a/chrome/browser/in_process_webkit/webkit_context.cc b/chrome/browser/in_process_webkit/webkit_context.cc |
index 32fccf7b7c702e60c9bcca9ba77a3a35b7be86e2..358c80fd2051c09582ec7c65bd2168d36939203d 100644 |
--- a/chrome/browser/in_process_webkit/webkit_context.cc |
+++ b/chrome/browser/in_process_webkit/webkit_context.cc |
@@ -9,9 +9,10 @@ |
#include "chrome/browser/profile.h" |
#include "chrome/common/chrome_switches.h" |
-WebKitContext::WebKitContext(Profile* profile) |
+WebKitContext::WebKitContext(Profile* profile, bool clear_local_state_on_exit) |
: data_path_(profile->IsOffTheRecord() ? FilePath() : profile->GetPath()), |
is_incognito_(profile->IsOffTheRecord()), |
+ clear_local_state_on_exit_(clear_local_state_on_exit), |
ALLOW_THIS_IN_INITIALIZER_LIST( |
dom_storage_context_(new DOMStorageContext(this))), |
ALLOW_THIS_IN_INITIALIZER_LIST( |
@@ -30,6 +31,8 @@ WebKitContext::~WebKitContext() { |
delete dom_storage_context; |
} |
+ indexed_db_context_->set_clear_local_state_on_exit( |
+ clear_local_state_on_exit_); |
IndexedDBContext* indexed_db_context = indexed_db_context_.release(); |
if (!BrowserThread::DeleteSoon( |
BrowserThread::WEBKIT, FROM_HERE, indexed_db_context)) { |