Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5405)

Unified Diff: chrome/browser/in_process_webkit/webkit_context.cc

Issue 5359005: Moved deleting the indexed db context to the WebKitContext destructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Niptucked. Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)) {
« no previous file with comments | « chrome/browser/in_process_webkit/webkit_context.h ('k') | chrome/browser/in_process_webkit/webkit_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698