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

Unified Diff: content/renderer/npapi/webplugin_impl.cc

Issue 197083003: Temporarily disable direct NPAPI requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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/content_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/npapi/webplugin_impl.cc
diff --git a/content/renderer/npapi/webplugin_impl.cc b/content/renderer/npapi/webplugin_impl.cc
index f9caddc4d3fccb1d5d57f7c8e892eba696a1ef0a..bfdaac6e08beeca13a133d233504fb313b115179 100644
--- a/content/renderer/npapi/webplugin_impl.cc
+++ b/content/renderer/npapi/webplugin_impl.cc
@@ -1230,8 +1230,8 @@ void WebPluginImpl::HandleURLRequestInternal(const char* url,
if (!delegate_)
return;
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableDirectNPAPIRequests)) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDirectNPAPIRequests)) {
// We got here either because the plugin called GetURL/PostURL, or because
// we're fetching the data for an embed tag. If we're in multi-process mode,
// we want to fetch the data in the plugin process as the renderer won't be
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698