Chromium Code Reviews| 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 b72aab12ab06d3374ed5ee12ac00b92f1f8737a5..b490219056da1a679495b3b09b79bfd8decc3ac4 100644 |
| --- a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc |
| +++ b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc |
| @@ -151,8 +151,16 @@ void LauncherContextMenu::Init() { |
| l10n_util::GetStringUTF16(IDS_LAUNCHER_CONTEXT_MENU_PIN)); |
| } |
| if (controller_->IsOpen(item_.id)) { |
| +#if defined(OS_CHROMEOS) |
| + if (!extension_misc::IsImeMenuExtensionId( |
| + controller_->GetAppIDForShelfID(item_.id))) { |
| + AddItem(MENU_CLOSE, |
| + l10n_util::GetStringUTF16(IDS_LAUNCHER_CONTEXT_MENU_CLOSE)); |
| + } |
| +#else |
| AddItem(MENU_CLOSE, |
| l10n_util::GetStringUTF16(IDS_LAUNCHER_CONTEXT_MENU_CLOSE)); |
|
stevenjb
2016/01/28 18:45:04
nit: Instead of duplicating this, I would suggest:
Azure Wei
2016/01/29 02:43:59
Done.
|
| +#endif |
| } |
| } |
| AddSeparator(ui::NORMAL_SEPARATOR); |