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

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

Issue 186213003: <webview>: Context menu API implementation CL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @tott Created 6 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
Index: chrome/browser/ui/ash/launcher/launcher_context_menu.cc
diff --git a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
index 64b0b1707b69c6f0ef07960adf29739d9307a2da..92cb9160e17f82eb11972be02e62dd4815382e74 100644
--- a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
+++ b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
@@ -156,11 +156,12 @@ void LauncherContextMenu::Init() {
if (item_.type == ash::TYPE_APP_SHORTCUT ||
item_.type == ash::TYPE_WINDOWED_APP ||
item_.type == ash::TYPE_PLATFORM_APP) {
- std::string app_id = controller_->GetAppIDForShelfID(item_.id);
- if (!app_id.empty()) {
+ const extensions::MenuItem::ExtensionKey app_key(
+ controller_->GetAppIDForShelfID(item_.id));
+ if (!app_key.empty()) {
int index = 0;
extension_items_->AppendExtensionItems(
- app_id, base::string16(), &index);
+ app_key, base::string16(), &index);
AddSeparator(ui::NORMAL_SEPARATOR);
}
}
« no previous file with comments | « chrome/browser/ui/app_list/app_context_menu.cc ('k') | chrome/renderer/resources/extensions/webview_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698