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

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

Issue 12288012: Showing launcher items for windowed v1 apps - pinned or not. Also - don't show windowed v1 apps in … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing build breakage with clang Created 7 years, 10 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
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_item_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/launcher_item_controller.cc
index 2c2dea77341b2ac582c3f87c81cd7ae61433fc97..77e11c5a38590758b14c68f7872983637aa95181 100644
--- a/chrome/browser/ui/ash/launcher/launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/launcher_item_controller.cc
@@ -18,12 +18,17 @@ LauncherItemController::LauncherItemController(
: type_(type),
app_id_(app_id),
launcher_id_(0),
- launcher_controller_(launcher_controller) {
+ launcher_controller_(launcher_controller),
+ locked_(0) {
}
LauncherItemController::~LauncherItemController() {
}
+const std::string& LauncherItemController::app_id() const {
+ return app_id_;
+}
+
string16 LauncherItemController::GetAppTitle() const {
if (app_id_.empty())
return string16();
@@ -36,6 +41,7 @@ string16 LauncherItemController::GetAppTitle() const {
ash::LauncherItemType LauncherItemController::GetLauncherItemType() const {
switch (type_) {
case LauncherItemController::TYPE_SHORTCUT:
+ case LauncherItemController::TYPE_WINDOWED_APP:
return ash::TYPE_APP_SHORTCUT;
case LauncherItemController::TYPE_APP:
case LauncherItemController::TYPE_EXTENSION_PANEL:
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_item_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698