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

Unified Diff: chrome/browser/ui/views/ash/app_list/extension_app_item.cc

Issue 10652003: chromeos: Make Chrome app a real app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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/views/ash/app_list/extension_app_item.cc
diff --git a/chrome/browser/ui/views/ash/app_list/extension_app_item.cc b/chrome/browser/ui/views/ash/app_list/extension_app_item.cc
index c8d80862bec0fb0a323a86f5d196b5bd54d501a3..942e79d7a8d465a81b2007af931edc41b2c0f61a 100644
--- a/chrome/browser/ui/views/ash/app_list/extension_app_item.cc
+++ b/chrome/browser/ui/views/ash/app_list/extension_app_item.cc
@@ -268,6 +268,10 @@ void ExtensionAppItem::Activate(int event_flags) {
}
ui::MenuModel* ExtensionAppItem::GetContextMenuModel() {
+ // No context menu for Chrome app.
+ if (extension_id_ == extension_misc::kChromeAppId)
+ return NULL;
+
if (!context_menu_model_.get()) {
context_menu_model_.reset(new ui::SimpleMenuModel(this));
context_menu_model_->AddItem(LAUNCH, UTF8ToUTF16(title()));
« no previous file with comments | « chrome/browser/ui/views/ash/app_list/apps_model_builder.cc ('k') | chrome/browser/ui/views/ash/app_list/search_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698