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

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 924193005: Add keyboard navigation to the custom launcher page on app list start page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | ui/app_list/app_list_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | ui/app_list/app_list_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698