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

Unified Diff: content/browser/dom_storage/dom_storage_database.cc

Issue 1533703002: [sql] Consider fresh databases suitable for memory-mapped I/O. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: eyeroll and 0UL Created 5 years 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
« no previous file with comments | « chrome/browser/predictors/predictor_database.cc ('k') | sql/connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/dom_storage/dom_storage_database.cc
diff --git a/content/browser/dom_storage/dom_storage_database.cc b/content/browser/dom_storage/dom_storage_database.cc
index 1e0166f68f849f157e55b25e199f917416a70b92..b19dffa6c2fb947c499cc8cb854b3d388f8a0a06 100644
--- a/content/browser/dom_storage/dom_storage_database.cc
+++ b/content/browser/dom_storage/dom_storage_database.cc
@@ -151,6 +151,10 @@ bool DOMStorageDatabase::LazyOpen(bool create_if_needed) {
db_.reset(new sql::Connection());
db_->set_histogram_tag("DOMStorageDatabase");
+ // TODO(shess): The current mitigation for http://crbug.com/537742 stores
+ // state in the meta table, which this database does not use.
+ db_->set_mmap_disabled();
+
if (file_path_.empty()) {
// This code path should only be triggered by unit tests.
if (!db_->OpenInMemory()) {
« no previous file with comments | « chrome/browser/predictors/predictor_database.cc ('k') | sql/connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698