summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 18:07:50 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 18:07:50 +0000
commit69f1e8f3b85a7f81b3beb64e4b060ebf25db7adb (patch)
tree69ab1c26e475f44e4973f675a017b7ef364c91af
parent08041baee0b1d417b6c08ad4bc83263facc3631b (diff)
downloadchromium_src-69f1e8f3b85a7f81b3beb64e4b060ebf25db7adb.zip
chromium_src-69f1e8f3b85a7f81b3beb64e4b060ebf25db7adb.tar.gz
chromium_src-69f1e8f3b85a7f81b3beb64e4b060ebf25db7adb.tar.bz2
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
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu.cc2
1 files changed, 1 insertions, 1 deletions
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);