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

Unified Diff: content/browser/ppapi_plugin_process_host.cc

Issue 11066087: Upstream BrowserChildProcessHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/ppapi_plugin_process_host.cc
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index 4669da0cc61b4d25e69b404b58a008af01c233bb..a94421579be5785e68f2a2278c83361fc7bbc927 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -242,7 +242,7 @@ bool PpapiPluginProcessHost::Init(const content::PepperPluginInfo& info) {
#endif
switches::kNoSandbox,
switches::kPpapiFlashArgs,
- switches::kPpapiStartupDialog,
+ switches::kPpapiStartupDialog
};
cmd_line->CopySwitchesFrom(browser_command_line, kPluginForwardSwitches,
arraysize(kPluginForwardSwitches));
@@ -258,6 +258,15 @@ bool PpapiPluginProcessHost::Init(const content::PepperPluginInfo& info) {
if (!plugin_launcher.empty())
cmd_line->PrependWrapper(plugin_launcher);
+ base::EnvironmentVector env;
Yaron 2012/10/09 21:38:53 I think we can just drop this. We don't use plugin
Yusuf 2012/10/10 00:06:08 Done.
+#if defined(OS_ANDROID)
+ BrowserChildProcessHostImpl::AppendCommonChildCommandLine(cmd_line);
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kPpapiStartupDialog)) {
+ cmd_line->AppendSwitch(switches::kPpapiStartupDialog);
+ }
+#endif
+
// On posix, never use the zygote for the broker. Also, only use the zygote if
// the plugin is sandboxed, and we are not using a plugin launcher - having a
// plugin launcher means we need to use another process instead of just

Powered by Google App Engine
This is Rietveld 408576698