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

Unified Diff: ash/launcher/launcher_model.cc

Issue 11299272: Revert 170406 - Align panel icons on the right / end. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | « ash/launcher/launcher_model.h ('k') | ash/launcher/launcher_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_model.cc
===================================================================
--- ash/launcher/launcher_model.cc (revision 170419)
+++ ash/launcher/launcher_model.cc (working copy)
@@ -19,12 +19,11 @@
case TYPE_APP_SHORTCUT:
return 1;
case TYPE_TABBED:
+ case TYPE_APP_PANEL:
case TYPE_PLATFORM_APP:
return 2;
case TYPE_APP_LIST:
return 3;
- case TYPE_APP_PANEL:
- return 4;
}
NOTREACHED() << "Invalid type " << type;
@@ -118,13 +117,6 @@
return items_.end();
}
-int LauncherModel::FirstPanelIndex() const {
- LauncherItem weight_dummy;
- weight_dummy.type = TYPE_APP_PANEL;
- return std::lower_bound(items_.begin(), items_.end(), weight_dummy,
- CompareByWeight) - items_.begin();
-}
-
void LauncherModel::SetStatus(Status status) {
if (status_ == status)
return;
« no previous file with comments | « ash/launcher/launcher_model.h ('k') | ash/launcher/launcher_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698