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

Unified Diff: ash/shelf/shelf_model.cc

Issue 133743005: Don't allow windowed but not pinned applications to mix with shortcuts in the shelf launcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self nit: Changed comment Created 6 years, 11 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 | « no previous file | chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_model.cc
diff --git a/ash/shelf/shelf_model.cc b/ash/shelf/shelf_model.cc
index 8f4f10fe8b031fe0f3e60504e8dc64e05ba43de7..1ca0d9a604847940c05819754b03add4e783ff02 100644
--- a/ash/shelf/shelf_model.cc
+++ b/ash/shelf/shelf_model.cc
@@ -22,8 +22,8 @@ int LauncherItemTypeToWeight(LauncherItemType type) {
return 0;
case TYPE_BROWSER_SHORTCUT:
case TYPE_APP_SHORTCUT:
- case TYPE_WINDOWED_APP:
return 1;
+ case TYPE_WINDOWED_APP:
case TYPE_PLATFORM_APP:
return 2;
case TYPE_DIALOG:
@@ -38,8 +38,8 @@ int LauncherItemTypeToWeight(LauncherItemType type) {
switch (type) {
case TYPE_BROWSER_SHORTCUT:
case TYPE_APP_SHORTCUT:
- case TYPE_WINDOWED_APP:
return 0;
+ case TYPE_WINDOWED_APP:
case TYPE_PLATFORM_APP:
return 1;
case TYPE_APP_LIST:
« no previous file with comments | « no previous file | chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698