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

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

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: Propogating Changes to Renderer 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_connection.cc
diff --git a/content/browser/indexed_db/indexed_db_connection.cc b/content/browser/indexed_db/indexed_db_connection.cc
index c2c7ebd266df6df2f445818775ad260965660cbb..08faceecd27ccade002c239da25246a7fb8ae8cb 100644
--- a/content/browser/indexed_db/indexed_db_connection.cc
+++ b/content/browser/indexed_db/indexed_db_connection.cc
@@ -12,10 +12,18 @@ namespace content {
IndexedDBConnection::IndexedDBConnection(
scoped_refptr<IndexedDBDatabase> database,
scoped_refptr<IndexedDBDatabaseCallbacks> callbacks)
- : database_(database), callbacks_(callbacks), weak_factory_(this) {}
+ : id_(kInvalidId),
jsbell 2016/07/11 18:25:33 This can have the default initialization in the he
palakj1 2016/07/11 22:25:40 Done.
+ database_(database),
+ callbacks_(callbacks),
+ weak_factory_(this) {}
IndexedDBConnection::~IndexedDBConnection() {}
+void IndexedDBConnection::setId(int32_t id) {
+ DCHECK_EQ(id_, kInvalidId);
+ id_ = id;
+}
+
void IndexedDBConnection::Close() {
if (!callbacks_.get())
return;

Powered by Google App Engine
This is Rietveld 408576698