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

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

Issue 98283004: Fixing problem with M33->M32->M33 transitions & pinned app preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
index d80e3d8754af1017546ad750cbb7d02435de3514..b68c7335eea2c4bb6d6632eeca375ef80e0b72a5 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
@@ -1834,6 +1834,13 @@ void ChromeLauncherController::MoveChromeOrApplistToFinalPosition(
int ChromeLauncherController::FindInsertionPoint(bool is_app_list) {
bool alternate = ash::switches::UseAlternateShelfLayout();
+ // Keeping this change small to backport to M33&32 (see crbug.com/329597).
+ // TODO(skuhne): With the removal of the legacy shelf layout we should remove
+ // the ability to move the app list item since this was never used. We should
+ // instead ask the ShelfModel::ValidateInsertionIndex or similir for an index.
Daniel Erat 2013/12/19 16:59:46 nit: s/similir/similar/
+ if (is_app_list && alternate)
+ return 0;
+
for (int i = model_->item_count() - 1; i > 0; --i) {
ash::LauncherItemType type = model_->items()[i].type;
if (type == ash::TYPE_APP_SHORTCUT ||
« 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