diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 16:19:28 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 16:19:28 +0000 |
commit | f820ea3a5b6018e049997ae392a55eb06954a9fa (patch) | |
tree | 84aa51cac51d1ed15a0cbc39ebc066fc2e804f0a | |
parent | b73cfc891d2573ab913fd029f6241df4e7907d3d (diff) | |
download | chromium_src-f820ea3a5b6018e049997ae392a55eb06954a9fa.zip chromium_src-f820ea3a5b6018e049997ae392a55eb06954a9fa.tar.gz chromium_src-f820ea3a5b6018e049997ae392a55eb06954a9fa.tar.bz2 |
DevTools: Enable 'Inspect element' on chromeui content while in debug mode.
Review URL: http://codereview.chromium.org/132071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18817 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/tab_contents/render_view_context_menu.cc | 7 |
1 files changed, 6 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 4926481..f7505a7 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -598,8 +598,13 @@ bool RenderViewContextMenu::IsDevCommandEnabled(int id) const { if (active_entry->url().SchemeIs(chrome::kGearsScheme)) return false; +#if defined NDEBUG + bool debug_mode = false; +#else + bool debug_mode = true; +#endif // Don't inspect inspector, new tab UI, etc. - if (active_entry->url().SchemeIs(chrome::kChromeUIScheme)) + if (active_entry->url().SchemeIs(chrome::kChromeUIScheme) && !debug_mode) return false; // Don't inspect about:network, about:memory, etc. |