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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store_unittest.cc

Issue 2109273002: IndexedDB: Created IndexedDBDataLossInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initializing data loss in IndexedDBBackingStore::Open Created 4 years, 5 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/indexed_db/indexed_db_backing_store_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store_unittest.cc b/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
index c049019db82c7b0c16a0b90d7108dbd91c6710a9..644e608b6b7c2a5fe608c597a77a1183d5563c15 100644
--- a/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
@@ -187,18 +187,12 @@ class TestIDBFactory : public IndexedDBFactoryImpl {
scoped_refptr<TestableIndexedDBBackingStore> OpenBackingStoreForTest(
const Origin& origin,
net::URLRequestContext* url_request_context) {
- blink::WebIDBDataLoss data_loss;
- std::string data_loss_reason;
+ IndexedDBDataLossInfo data_loss_info;
bool disk_full;
leveldb::Status status;
scoped_refptr<IndexedDBBackingStore> backing_store =
- OpenBackingStore(origin,
- context()->data_path(),
- url_request_context,
- &data_loss,
- &data_loss_reason,
- &disk_full,
- &status);
+ OpenBackingStore(origin, context()->data_path(), url_request_context,
+ &data_loss_info, &disk_full, &status);
scoped_refptr<TestableIndexedDBBackingStore> testable_store =
static_cast<TestableIndexedDBBackingStore*>(backing_store.get());
return testable_store;
@@ -211,8 +205,7 @@ class TestIDBFactory : public IndexedDBFactoryImpl {
const Origin& origin,
const base::FilePath& data_directory,
net::URLRequestContext* request_context,
- blink::WebIDBDataLoss* data_loss,
- std::string* data_loss_message,
+ IndexedDBDataLossInfo* data_loss_info,
bool* disk_full,
bool first_time,
leveldb::Status* status) override {
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | content/browser/indexed_db/indexed_db_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698