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

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

Issue 2847013002: Switch to mojo localstorage backend by default. (Closed)
Patch Set: rebase Created 3 years, 7 months 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: content/browser/dom_storage/local_storage_context_mojo_unittest.cc
diff --git a/content/browser/dom_storage/local_storage_context_mojo_unittest.cc b/content/browser/dom_storage/local_storage_context_mojo_unittest.cc
index 1711de33f9f1c566983e9a9a8c08a92c24311c60..e3f7c76e577a7eb82c4e02112159a0e42abdaef8 100644
--- a/content/browser/dom_storage/local_storage_context_mojo_unittest.cc
+++ b/content/browser/dom_storage/local_storage_context_mojo_unittest.cc
@@ -138,7 +138,11 @@ class LocalStorageContextMojoTest : public testing::Test {
nullptr, task_runner_, temp_path_.GetPath(),
base::FilePath(FILE_PATH_LITERAL("leveldb")),
special_storage_policy());
- db_binding_.Bind(context_->DatabaseRequestForTesting());
+ leveldb::mojom::LevelDBDatabaseAssociatedPtr database_ptr;
+ leveldb::mojom::LevelDBDatabaseAssociatedRequest request =
+ MakeIsolatedRequest(&database_ptr);
+ context_->SetDatabaseForTesting(std::move(database_ptr));
+ db_binding_.Bind(std::move(request));
}
return context_;
}

Powered by Google App Engine
This is Rietveld 408576698