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

Unified Diff: ash/shelf/app_list_shelf_item_delegate.cc

Issue 2867673004: Use OnceCallback on Mojo interfaces in //ash (Closed)
Patch Set: count -> container_count Created 3 years, 7 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 | « ash/shelf/app_list_shelf_item_delegate.h ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/app_list_shelf_item_delegate.cc
diff --git a/ash/shelf/app_list_shelf_item_delegate.cc b/ash/shelf/app_list_shelf_item_delegate.cc
index 466759dc024d3bb1a82b384ddde7a6f4a37db7de..76361cd9b818719e30a322b72ebc3eedbabb2e9d 100644
--- a/ash/shelf/app_list_shelf_item_delegate.cc
+++ b/ash/shelf/app_list_shelf_item_delegate.cc
@@ -4,6 +4,8 @@
#include "ash/shelf/app_list_shelf_item_delegate.h"
+#include <utility>
+
#include "ash/shelf/shelf_model.h"
#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h"
@@ -41,13 +43,12 @@ AppListShelfItemDelegate::AppListShelfItemDelegate()
AppListShelfItemDelegate::~AppListShelfItemDelegate() {}
-void AppListShelfItemDelegate::ItemSelected(
- std::unique_ptr<ui::Event> event,
- int64_t display_id,
- ShelfLaunchSource source,
- const ItemSelectedCallback& callback) {
+void AppListShelfItemDelegate::ItemSelected(std::unique_ptr<ui::Event> event,
+ int64_t display_id,
+ ShelfLaunchSource source,
+ ItemSelectedCallback callback) {
Shell::Get()->ToggleAppList();
- callback.Run(SHELF_ACTION_APP_LIST_SHOWN, base::nullopt);
+ std::move(callback).Run(SHELF_ACTION_APP_LIST_SHOWN, base::nullopt);
}
void AppListShelfItemDelegate::ExecuteCommand(uint32_t command_id,
« no previous file with comments | « ash/shelf/app_list_shelf_item_delegate.h ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698