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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 9569042: Add reload item to default developer-mode platform app context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix EmptyContextMenu Created 8 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 | « chrome/browser/extensions/platform_app_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/render_view_context_menu.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index 8420bdf446268b9878bccfceba839f863193eb12..3219b0f693b2dc08e2fee620d32f7818e293f096 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -650,8 +650,10 @@ void RenderViewContextMenu::AppendPlatformAppItems(
AppendExtensionItems(platform_app->id(), &index);
// Add dev tools for unpacked extensions.
- if (platform_app->location() == Extension::LOAD)
+ if (platform_app->location() == Extension::LOAD) {
+ menu_model_.AddItemWithStringId(IDC_RELOAD, IDS_CONTENT_CONTEXT_RELOAD);
AppendDeveloperItems();
+ }
}
void RenderViewContextMenu::AppendPopupExtensionItems() {
« no previous file with comments | « chrome/browser/extensions/platform_app_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698