Chromium Code Reviews| 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..eb94c4f9d4f10b3b90d120df606d2bf22e3cb54e 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,14 @@ 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); |
| + |
| + ChromeLauncherController* controller() { return chrome_launcher_controller_; } |
|
xiyuan
2016/05/11 22:10:08
nit: move this with other accessors, around line 6
khmel
2016/05/12 18:28:06
Done.
|
| + |
| std::vector<content::WebContents*> GetRunningApplications(); |
| // LauncherItemController overrides: |
| @@ -56,6 +59,10 @@ 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; } |
| + protected: |
| + AppShortcutLauncherItemController(const std::string& app_id, |
| + ChromeLauncherController* controller); |
| + |
| private: |
| // Get the last running application. |
| content::WebContents* GetLRUApplication(); |