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

Unified Diff: content/child/indexed_db/webidbdatabase_impl.cc

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: Minor typecasting 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
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/webidbdatabase_impl.cc
diff --git a/content/child/indexed_db/webidbdatabase_impl.cc b/content/child/indexed_db/webidbdatabase_impl.cc
index 1895b5aff3b5ce6392a2da29a7175dd259e85a52..2a4f8486bc5593027d2a6a6b5e551c71c96996e5 100644
--- a/content/child/indexed_db/webidbdatabase_impl.cc
+++ b/content/child/indexed_db/webidbdatabase_impl.cc
@@ -115,19 +115,18 @@ int32_t WebIDBDatabaseImpl::addObserver(
return observer_id;
}
-bool WebIDBDatabaseImpl::containsObserverId(int32_t id) const {
- return ContainsValue(observer_ids_, id);
-}
-
void WebIDBDatabaseImpl::removeObservers(
- const std::vector<int32_t>& observer_ids_to_remove) {
+ const WebVector<int32_t>& observer_ids_to_remove) {
+ std::vector<int32_t> remove_observer_ids(
+ observer_ids_to_remove.data(),
+ observer_ids_to_remove.data() + observer_ids_to_remove.size());
for (int32_t id : observer_ids_to_remove)
observer_ids_.erase(id);
IndexedDBDispatcher* dispatcher =
IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get());
dispatcher->RemoveIDBObserversFromDatabase(ipc_database_id_,
- observer_ids_to_remove);
+ remove_observer_ids);
}
void WebIDBDatabaseImpl::get(long long transaction_id,
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698