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

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

Issue 2487002: Disable navigation contextual menus for Sync dialog UI.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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/tab_contents/render_view_context_menu.h ('k') | no next file » | 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 48638)
+++ chrome/browser/tab_contents/render_view_context_menu.cc (working copy)
@@ -55,6 +55,12 @@
url.host() == chrome::kChromeUIDevToolsHost;
}
+// static
+bool RenderViewContextMenu::IsSyncResourcesURL(const GURL& url) {
+ return url.SchemeIs(chrome::kChromeUIScheme) &&
+ url.host() == chrome::kSyncResourcesHost;
+}
+
static const int kSpellcheckRadioGroup = 1;
static const int kExtensionsRadioGroup = 2;
@@ -290,11 +296,11 @@
// If context is in subframe, show subframe options instead.
if (!params_.frame_url.is_empty()) {
is_devtools = IsDevToolsURL(params_.frame_url);
- if (!is_devtools)
+ if (!is_devtools && !IsSyncResourcesURL(params_.frame_url))
AppendFrameItems();
} else if (!params_.page_url.is_empty()) {
is_devtools = IsDevToolsURL(params_.page_url);
- if (!is_devtools)
+ if (!is_devtools && !IsSyncResourcesURL(params_.page_url))
AppendPageItems();
}
}
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698