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

Unified Diff: chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h

Issue 1973603002: arc: Make Play Store item persistance in shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + policy_browsertest.cc Created 4 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/app_shortcut_launcher_item_controller.h
diff --git a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
index 20165a45aabb58dedda9851063d48bfee37d1183..a71c1822e07006b61766213b65371f3648972380 100644
--- a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
+++ b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
@@ -27,11 +27,12 @@ class ChromeLauncherController;
// item with the appropriate LauncherItemController type).
class AppShortcutLauncherItemController : public LauncherItemController {
public:
- AppShortcutLauncherItemController(const std::string& app_id,
- ChromeLauncherController* controller);
-
~AppShortcutLauncherItemController() override;
+ static AppShortcutLauncherItemController* Create(
+ const std::string& app_id,
+ ChromeLauncherController* controller);
+
std::vector<content::WebContents*> GetRunningApplications();
// LauncherItemController overrides:
@@ -56,6 +57,12 @@ class AppShortcutLauncherItemController : public LauncherItemController {
// Set the refocus url pattern. Used by unit tests.
void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; }
+ ChromeLauncherController* controller() { return chrome_launcher_controller_; }
+
+ protected:
+ AppShortcutLauncherItemController(const std::string& app_id,
+ ChromeLauncherController* controller);
+
private:
// Get the last running application.
content::WebContents* GetLRUApplication();

Powered by Google App Engine
This is Rietveld 408576698