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

Unified Diff: content/browser/renderer_host/render_view_host_impl.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
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index ab02f24b62df6fbba2682ff432ce7fccc6a5b50e..de7bd8080edf637e4c808e494ac1d97f7c616e16 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -325,8 +325,6 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs(const GURL& url) {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
- prefs.javascript_enabled =
- !command_line.HasSwitch(switches::kDisableJavaScript);
prefs.web_security_enabled =
!command_line.HasSwitch(switches::kDisableWebSecurity);
prefs.plugins_enabled =
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698