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

Unified Diff: chrome/browser/ui/ash/launcher/arc_playstore_shortcut_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_playstore_shortcut_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc
index e1f1cba48ceb3e9bac594631e64c9585c75ec8e0..292d8c1e0d49cea43b4e735f7d17201725a873a8 100644
--- a/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.h"
+#include <utility>
+
#include "base/memory/ptr_util.h"
#include "chrome/browser/chromeos/arc/arc_support_host.h"
#include "chrome/browser/profiles/profile.h"
@@ -24,7 +26,7 @@ void ArcPlaystoreShortcutLauncherItemController::ItemSelected(
std::unique_ptr<ui::Event> event,
int64_t display_id,
ash::ShelfLaunchSource source,
- const ItemSelectedCallback& callback) {
+ ItemSelectedCallback callback) {
if (!playstore_launcher_) {
// Play Store launch request has never been scheduled.
std::unique_ptr<ArcAppLauncher> playstore_launcher =
@@ -39,5 +41,5 @@ void ArcPlaystoreShortcutLauncherItemController::ItemSelected(
if (!playstore_launcher->app_launched())
playstore_launcher_ = std::move(playstore_launcher);
}
- callback.Run(ash::SHELF_ACTION_NONE, base::nullopt);
+ std::move(callback).Run(ash::SHELF_ACTION_NONE, base::nullopt);
}

Powered by Google App Engine
This is Rietveld 408576698