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

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

Issue 2583253002: Start adding tests for LevelDBWrapper, and fix a bunch of bugs. (Closed)
Patch Set: fix StringPiece conversion Created 4 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 | « no previous file | content/browser/leveldb_wrapper_impl.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_context_wrapper.cc
diff --git a/content/browser/dom_storage/dom_storage_context_wrapper.cc b/content/browser/dom_storage/dom_storage_context_wrapper.cc
index b8059d985655666f84a8820968f72b74e401ffc6..031e605638c04e553431bcc8774355c12ce4e07c 100644
--- a/content/browser/dom_storage/dom_storage_context_wrapper.cc
+++ b/content/browser/dom_storage/dom_storage_context_wrapper.cc
@@ -125,9 +125,6 @@ class DOMStorageContextWrapper::MojoState {
mojom::LevelDBObserverPtr observer,
mojom::LevelDBWrapperRequest request);
- // Maps between an origin and its prefixed LevelDB view.
- std::map<url::Origin, std::unique_ptr<LevelDBWrapperImpl>> level_db_wrappers_;
-
service_manager::Connector* const connector_;
const base::FilePath subdirectory_;
@@ -147,6 +144,9 @@ class DOMStorageContextWrapper::MojoState {
std::vector<base::Closure> on_database_opened_callbacks_;
+ // Maps between an origin and its prefixed LevelDB view.
+ std::map<url::Origin, std::unique_ptr<LevelDBWrapperImpl>> level_db_wrappers_;
+
base::WeakPtrFactory<MojoState> weak_ptr_factory_;
};
« no previous file with comments | « no previous file | content/browser/leveldb_wrapper_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698