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

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

Issue 817123003: Remove commandline flag --disable-javascript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unsed variables Created 5 years, 11 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 | « no previous file | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_context_menu/render_view_context_menu.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
index 6d8bb6d24e99bf16a9bf882d86de17dca329822f..adb669a48ca90f0e58e54bf314dd96b347081c40 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -1724,11 +1724,8 @@ void RenderViewContextMenu::NotifyURLOpened(
bool RenderViewContextMenu::IsDevCommandEnabled(int id) const {
if (id == IDC_CONTENT_CONTEXT_INSPECTELEMENT ||
id == IDC_CONTENT_CONTEXT_INSPECTBACKGROUNDPAGE) {
- const base::CommandLine* command_line =
- base::CommandLine::ForCurrentProcess();
if (!GetPrefs(browser_context_)
- ->GetBoolean(prefs::kWebKitJavascriptEnabled) ||
- command_line->HasSwitch(switches::kDisableJavaScript))
+ ->GetBoolean(prefs::kWebKitJavascriptEnabled))
return false;
// Don't enable the web inspector if the developer tools are disabled via
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698