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); |
} |