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

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

Issue 27369004: Change GetBrowserItemIndex() to GetLauncherItemIndexForType() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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
Index: chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
index 84128775261c9b74cb2003b9db5023b26a684b95..a7b08b15fd5e54e63b79cd736c5db8d3e0e4674a 100644
--- a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
@@ -60,7 +60,8 @@ void BrowserShortcutLauncherItemController::UpdateBrowserItemState() {
ash::LauncherModel* model = launcher_controller()->model();
// Determine the new browser's active state and change if necessary.
- size_t browser_index = ash::GetBrowserItemIndex(*model);
+ size_t browser_index =
+ ash::GetLauncherItemIndexForType(ash::TYPE_BROWSER_SHORTCUT, *model);
DCHECK_GE(browser_index, 0u);
ash::LauncherItem browser_item = model->items()[browser_index];
ash::LauncherItemStatus browser_status = ash::STATUS_CLOSED;

Powered by Google App Engine
This is Rietveld 408576698