Index: chrome/browser/ui/app_list/app_list_view_delegate.cc |
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
index c7c391b18bcf44e43285092c29698b4babff6278..c40337660723557465cafd412a572d1a3c39a0f2 100644 |
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc |
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
@@ -375,10 +375,16 @@ void AppListViewDelegate::SetUpCustomLauncherPages() { |
custom_page_contents_.push_back(page_contents); |
} |
+ std::string first_launcher_page_app_id = custom_launcher_page_urls[0].host(); |
+ const extensions::Extension* extension = |
+ extensions::ExtensionRegistry::Get(profile_) |
+ ->GetExtensionById(first_launcher_page_app_id, |
+ extensions::ExtensionRegistry::EVERYTHING); |
+ model_->set_custom_launcher_page_name(extension->name()); |
// Only the first custom launcher page gets events dispatched to it. |
launcher_page_event_dispatcher_.reset( |
- new app_list::LauncherPageEventDispatcher( |
- profile_, custom_launcher_page_urls[0].host())); |
+ new app_list::LauncherPageEventDispatcher(profile_, |
+ first_launcher_page_app_id)); |
} |
void AppListViewDelegate::OnHotwordStateChanged(bool started) { |