| Index: chrome/browser/ui/ash/launcher/launcher_item_controller.h
|
| diff --git a/chrome/browser/ui/ash/launcher/launcher_item_controller.h b/chrome/browser/ui/ash/launcher/launcher_item_controller.h
|
| index d485c4bedfd543161415e17323f8831e4e3a21ba..b46bb7c4647e5120fefe267b77510b7156770385 100644
|
| --- a/chrome/browser/ui/ash/launcher/launcher_item_controller.h
|
| +++ b/chrome/browser/ui/ash/launcher/launcher_item_controller.h
|
| @@ -18,6 +18,7 @@
|
|
|
| class ChromeLauncherController;
|
| class ChromeLauncherAppMenuItem;
|
| +class Profile;
|
|
|
| typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems;
|
|
|
| @@ -48,7 +49,7 @@ class LauncherItemController : public ash::ShelfItemDelegate {
|
| Type type() const { return type_; }
|
| ash::ShelfID shelf_id() const { return shelf_id_; }
|
| void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; }
|
| - virtual const std::string& app_id() const;
|
| + const std::string& app_id() const { return app_id_; }
|
| ChromeLauncherController* launcher_controller() const {
|
| return launcher_controller_;
|
| }
|
| @@ -86,10 +87,10 @@ class LauncherItemController : public ash::ShelfItemDelegate {
|
| // Helper function to get the ash::ShelfItemType for the item type.
|
| ash::ShelfItemType GetShelfItemType() const;
|
|
|
| - protected:
|
| - // Helper function to return the title associated with |app_id_|.
|
| + // Helper function to return the title associated with |app_id|.
|
| // Returns an empty title if no matching extension can be found.
|
| - base::string16 GetAppTitle() const;
|
| + static base::string16 GetAppTitle(Profile* profile,
|
| + const std::string& app_id);
|
|
|
| private:
|
| const Type type_;
|
|
|