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

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

Issue 2791803002: mash: Move LauncherItemController to ash, rename ShelfItemDelegate. (Closed)
Patch Set: Sync and rebase. Created 3 years, 8 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 bd631c174181590013089b867e015ff9ab95949a..abf769798a161abfc204bbb5ca57696cf98f0acc 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
@@ -13,11 +13,9 @@
#include "ui/events/event_constants.h"
ArcPlaystoreShortcutLauncherItemController::
- ArcPlaystoreShortcutLauncherItemController(
- ChromeLauncherController* controller)
+ ArcPlaystoreShortcutLauncherItemController()
: AppShortcutLauncherItemController(
- ash::AppLaunchId(ArcSupportHost::kHostAppId),
- controller) {}
+ ash::AppLaunchId(ArcSupportHost::kHostAppId)) {}
ArcPlaystoreShortcutLauncherItemController::
~ArcPlaystoreShortcutLauncherItemController() {}
@@ -31,8 +29,9 @@ void ArcPlaystoreShortcutLauncherItemController::ItemSelected(
// Play Store launch request has never been scheduled.
std::unique_ptr<ArcAppLauncher> playstore_launcher =
base::MakeUnique<ArcAppLauncher>(
- controller()->profile(), arc::kPlayStoreAppId,
- true /* landscape_layout */, true /* deferred_launch_allowed */);
+ ChromeLauncherController::instance()->profile(),
+ arc::kPlayStoreAppId, true /* landscape_layout */,
+ true /* deferred_launch_allowed */);
// ArcAppLauncher may launch Play Store in case it exists already. In this
// case this instance of ArcPlaystoreShortcutLauncherItemController may be
// deleted. If Play Store does not exist at this moment, then let

Powered by Google App Engine
This is Rietveld 408576698