Index: content/browser/indexed_db/indexed_db_callbacks.cc |
diff --git a/content/browser/indexed_db/indexed_db_callbacks.cc b/content/browser/indexed_db/indexed_db_callbacks.cc |
index 8ec899b7337334f28f8db9813bebaed259ba0869..8783d3b1049623997bd3145a5593259b8334a222 100644 |
--- a/content/browser/indexed_db/indexed_db_callbacks.cc |
+++ b/content/browser/indexed_db/indexed_db_callbacks.cc |
@@ -604,6 +604,12 @@ void IndexedDBCallbacks::OnSuccess() { |
dispatcher_host_ = NULL; |
} |
+bool IndexedDBCallbacks::IsValid() const { |
+ DCHECK(dispatcher_host_.get()); |
+ |
+ return dispatcher_host_->IsOpen(); |
+} |
+ |
void IndexedDBCallbacks::SetConnectionOpenStartTime( |
const base::TimeTicks& start_time) { |
connection_open_start_time_ = start_time; |