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

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

Issue 2695333002: Mojo C++ bindings: remove usage of AssociatedGroup from content/ (Closed)
Patch Set: . Created 3 years, 10 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_callbacks.cc
diff --git a/content/browser/indexed_db/indexed_db_callbacks.cc b/content/browser/indexed_db/indexed_db_callbacks.cc
index a3a707d788ca8fd6a3bb45ad653d0ed758a41086..ab1329379cd841a919a15825db28ddf45fd40355 100644
--- a/content/browser/indexed_db/indexed_db_callbacks.cc
+++ b/content/browser/indexed_db/indexed_db_callbacks.cc
@@ -479,9 +479,7 @@ void IndexedDBCallbacks::IOThreadHelper::SendUpgradeNeeded(
return;
::indexed_db::mojom::DatabaseAssociatedPtrInfo ptr_info;
- ::indexed_db::mojom::DatabaseAssociatedRequest request;
- callbacks_.associated_group()->CreateAssociatedInterface(
- mojo::AssociatedGroup::WILL_PASS_PTR, &ptr_info, &request);
+ auto request = mojo::MakeRequest(&ptr_info);
mojo::MakeStrongAssociatedBinding(std::move(database), std::move(request));
callbacks_->UpgradeNeeded(std::move(ptr_info), old_version, data_loss,
data_loss_message, metadata);
@@ -495,9 +493,7 @@ void IndexedDBCallbacks::IOThreadHelper::SendSuccessDatabase(
::indexed_db::mojom::DatabaseAssociatedPtrInfo ptr_info;
if (database) {
- ::indexed_db::mojom::DatabaseAssociatedRequest request;
- callbacks_.associated_group()->CreateAssociatedInterface(
- mojo::AssociatedGroup::WILL_PASS_PTR, &ptr_info, &request);
+ auto request = mojo::MakeRequest(&ptr_info);
mojo::MakeStrongAssociatedBinding(std::move(database), std::move(request));
}
callbacks_->SuccessDatabase(std::move(ptr_info), metadata);
@@ -516,9 +512,7 @@ void IndexedDBCallbacks::IOThreadHelper::SendSuccessCursor(
return;
::indexed_db::mojom::CursorAssociatedPtrInfo ptr_info;
- ::indexed_db::mojom::CursorAssociatedRequest request;
- callbacks_.associated_group()->CreateAssociatedInterface(
- mojo::AssociatedGroup::WILL_PASS_PTR, &ptr_info, &request);
+ auto request = mojo::MakeRequest(&ptr_info);
mojo::MakeStrongAssociatedBinding(std::move(cursor), std::move(request));
callbacks_->SuccessCursor(std::move(ptr_info), key, primary_key,
std::move(value));
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/leveldb_wrapper_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698