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

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

Issue 2039543002: Getting rid of ChromeLauncherController::model(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 bd4c39734264403f68ea464a21c9e51614125aba..76ee5519c9c9f85e1b5a6ed3c042a376fae4e78b 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
@@ -74,7 +74,7 @@ void BrowserShortcutLauncherItemController::UpdateBrowserItemState() {
if (!ash::Shell::HasInstance())
return;
- ash::ShelfModel* model = launcher_controller()->model();
+ ash::ShelfModel* model = ash::Shell::GetInstance()->shelf_model();
// Determine the new browser's active state and change if necessary.
int browser_index = model->GetItemIndexForType(ash::TYPE_BROWSER_SHORTCUT);

Powered by Google App Engine
This is Rietveld 408576698