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

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

Issue 2766913002: Init shelf browser item status and re-enable test. (Closed)
Patch Set: Cleanup. Created 3 years, 9 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_impl_browsertest.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_impl.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
index f94784b190700ffc72c110912bc250c653e63751..2b0c5303c5c6d41c6035640d0c9fa865e7c3167a 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
@@ -1328,11 +1328,13 @@ void ChromeLauncherControllerImpl::CreateBrowserShortcutLauncherItem() {
browser_shortcut.title = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME);
ash::ShelfID id = model_->next_id();
model_->AddAt(0, browser_shortcut);
- id_to_item_controller_map_[id] =
+ BrowserShortcutLauncherItemController* controller =
new BrowserShortcutLauncherItemController(this, model_);
- id_to_item_controller_map_[id]->set_shelf_id(id);
+ controller->set_shelf_id(id);
+ id_to_item_controller_map_[id] = controller;
// ShelfModel owns BrowserShortcutLauncherItemController.
- SetShelfItemDelegate(id, id_to_item_controller_map_[id]);
+ SetShelfItemDelegate(id, controller);
+ controller->UpdateBrowserItemState();
}
bool ChromeLauncherControllerImpl::IsIncognito(
« no previous file with comments | « no previous file | chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698