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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.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
Index: chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc
index 6349ff4470337945760b51b5f06be18555ba6fe7..0e2125116774a7dd17725e6f3dedee79bea76394 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.h"
#include <memory>
+#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
@@ -35,8 +36,8 @@ void ArcAppDeferredLauncherItemController::ItemSelected(
std::unique_ptr<ui::Event> event,
int64_t display_id,
ash::ShelfLaunchSource source,
- const ItemSelectedCallback& callback) {
- callback.Run(ash::SHELF_ACTION_NONE, base::nullopt);
+ ItemSelectedCallback callback) {
+ std::move(callback).Run(ash::SHELF_ACTION_NONE, base::nullopt);
}
void ArcAppDeferredLauncherItemController::ExecuteCommand(uint32_t command_id,

Powered by Google App Engine
This is Rietveld 408576698