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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc

Issue 2696233002: Mojo C++ bindings: remove some usage of AssociatedGroup from user code. (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
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc ('k') | chrome/browser/ui/ash/media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
index fa664f9a29920d33a5fe942b8a5486554e853442..07d68414c0ba247899853cdbce8b6b9ff95ee1f5 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
@@ -24,11 +24,11 @@ class ChromeShelfItemDelegate : public ash::mojom::ShelfItemDelegate {
controller_(controller) {}
~ChromeShelfItemDelegate() override {}
- ash::mojom::ShelfItemDelegateAssociatedPtrInfo CreateInterfacePtrInfoAndBind(
- mojo::AssociatedGroup* associated_group) {
+ ash::mojom::ShelfItemDelegateAssociatedPtrInfo
+ CreateInterfacePtrInfoAndBind() {
DCHECK(!item_delegate_binding_.is_bound());
ash::mojom::ShelfItemDelegateAssociatedPtrInfo ptr_info;
- item_delegate_binding_.Bind(&ptr_info, associated_group);
+ item_delegate_binding_.Bind(&ptr_info);
return ptr_info;
}
@@ -294,8 +294,7 @@ void ChromeLauncherControllerMus::PinAppsFromPrefs() {
std::unique_ptr<ChromeShelfItemDelegate> delegate(
new ChromeShelfItemDelegate(app_id, this));
shelf_controller()->PinItem(std::move(item),
- delegate->CreateInterfacePtrInfoAndBind(
- shelf_controller().associated_group()));
+ delegate->CreateInterfacePtrInfoAndBind());
app_id_to_item_delegate_.insert(
std::make_pair(app_id, std::move(delegate)));
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc ('k') | chrome/browser/ui/ash/media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698