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

Unified Diff: content/renderer/render_view_impl.cc

Issue 819293002: Set whether context menu appears on mouse up from WebPreferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix order to be like WebPreferences Created 5 years, 10 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 | « content/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 8285c45075692350cc627ff5723d2ef43427207e..b49e302aadd2f68daf1175c1d991c66dac644f12 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1131,9 +1131,7 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
prefs.rubber_banding_on_compositor_thread);
settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars);
-#if defined(OS_WIN)
- settings->setShowContextMenuOnMouseUp(true);
-#endif
+ settings->setShowContextMenuOnMouseUp(prefs.context_menu_on_mouse_up);
#if defined(OS_MACOSX)
settings->setDoubleTapToZoomEnabled(true);
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698