From 69f1e8f3b85a7f81b3beb64e4b060ebf25db7adb Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Mon, 17 May 2010 18:07:50 +0000 Subject: Reinstate separator before Inspect Elements in debugger context menu. BUG=none TEST=none Review URL: http://codereview.chromium.org/2083007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47431 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_contents/render_view_context_menu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome') diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc index 6855883..20d22e3 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -349,7 +349,7 @@ void RenderViewContextMenu::AppendDeveloperItems() { if (g_browser_process->have_inspector_files()) { // In the DevTools popup menu, "developer items" is normally the only // section, so omit the separator there. - if (!IsDevToolsURL(params_.page_url)) + if (menu_model_.GetItemCount() > 0) menu_model_.AddSeparator(); menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_INSPECTELEMENT, IDS_CONTENT_CONTEXT_INSPECTELEMENT); -- cgit v1.1