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 4b228a8ffb57b1a56f9eb3d2c2705c6c323c7850..71aa90960e0266aabc5e26d8d426dbc4270735df 100644 |
--- a/chrome/browser/tab_contents/render_view_context_menu.cc |
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc |
@@ -1588,11 +1588,9 @@ bool RenderViewContextMenu::IsDevCommandEnabled(int id) const { |
if (active_entry->IsViewSourceMode()) |
return false; |
- // Don't inspect about:network, about:memory, etc. |
- // However, we do want to inspect about:blank, which is often |
- // used by ordinary web pages. |
- if (active_entry->virtual_url().SchemeIs(chrome::kAboutScheme) && |
- !LowerCaseEqualsASCII(active_entry->virtual_url().path(), "blank")) |
+ // Do not inspect Chrome URLs (chrome://network/, chrome://memory/, etc.). |
+ // However, do inspect about:blank, which is often used by ordinary web pages. |
+ if (active_entry->virtual_url().SchemeIs(chrome::kChromeUIScheme)) |
return false; |
if (id == IDC_CONTENT_CONTEXT_INSPECTELEMENT) { |