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 bbb895cba4a4cd1e664b5499a1210d57d443bfb3..878d9bbe98e83350022a130eb72fc4b5225f620e 100644 |
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc |
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
@@ -372,10 +372,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) { |