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

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

Issue 2519073003: IndexedDB: IndexedDBDatabase::Create() returning db/status tuple. (Closed)
Patch Set: Swapped db/s to reflect order in tuple Created 4 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: content/browser/indexed_db/indexed_db_factory_impl.cc
diff --git a/content/browser/indexed_db/indexed_db_factory_impl.cc b/content/browser/indexed_db/indexed_db_factory_impl.cc
index d4d55119bc988e909aaaca5ee4ff31154eefa88f..88d2dab42d61ff3c170b3e61c137a3ee67572207 100644
--- a/content/browser/indexed_db/indexed_db_factory_impl.cc
+++ b/content/browser/indexed_db/indexed_db_factory_impl.cc
@@ -262,8 +262,9 @@ void IndexedDBFactoryImpl::DeleteDatabase(
return;
}
- scoped_refptr<IndexedDBDatabase> database = IndexedDBDatabase::Create(
- name, backing_store.get(), this, unique_identifier, &s);
+ scoped_refptr<IndexedDBDatabase> database;
+ std::tie(database, s) = IndexedDBDatabase::Create(name, backing_store.get(),
+ this, unique_identifier);
if (!database.get()) {
IndexedDBDatabaseError error(
blink::WebIDBDatabaseExceptionUnknownError,
@@ -436,8 +437,8 @@ void IndexedDBFactoryImpl::Open(
return;
}
- database = IndexedDBDatabase::Create(
- name, backing_store.get(), this, unique_identifier, &s);
+ std::tie(database, s) = IndexedDBDatabase::Create(name, backing_store.get(),
+ this, unique_identifier);
if (!database.get()) {
DLOG(ERROR) << "Unable to create the database";
IndexedDBDatabaseError error(blink::WebIDBDatabaseExceptionUnknownError,

Powered by Google App Engine
This is Rietveld 408576698