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

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

Issue 7064052: Revert 88142 to fix sync_integration_tests offline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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/printing/print_dialog_cloud_unittest.cc ('k') | chrome/browser/tab_restore_uitest.cc » ('j') | 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
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu.cc (revision 88158)
+++ chrome/browser/tab_contents/render_view_context_menu.cc (working copy)
@@ -1588,9 +1588,11 @@
if (active_entry->IsViewSourceMode())
return false;
- // 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))
+ // 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"))
return false;
if (id == IDC_CONTENT_CONTEXT_INSPECTELEMENT) {
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud_unittest.cc ('k') | chrome/browser/tab_restore_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698