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

Unified Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 11419260: Enable Pepper threading on canary. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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/browser/ppapi_plugin_process_host.cc ('k') | webkit/plugins/plugin_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_thread.cc
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
index b3259c7703d406eed3277460892bb865ede85269..ce57fb4f768a9da48935af72b4587ba6e20c3d0a 100644
--- a/content/ppapi_plugin/ppapi_thread.cc
+++ b/content/ppapi_plugin/ppapi_thread.cc
@@ -61,8 +61,13 @@ PpapiThread::PpapiThread(const CommandLine& command_line, bool is_broker)
globals->set_plugin_proxy_delegate(this);
globals->set_command_line(
command_line.GetSwitchValueASCII(switches::kPpapiFlashArgs));
- globals->set_enable_threading(
- command_line.HasSwitch(switches::kEnablePepperThreading));
+ if (command_line.HasSwitch(switches::kDisablePepperThreading)) {
+ globals->set_enable_threading(false);
+ } else if (command_line.HasSwitch(switches::kEnablePepperThreading)) {
+ globals->set_enable_threading(true);
+ } else {
+ globals->set_enable_threading(false);
+ }
webkit_platform_support_.reset(new PpapiWebKitPlatformSupportImpl);
WebKit::initialize(webkit_platform_support_.get());
« no previous file with comments | « content/browser/ppapi_plugin_process_host.cc ('k') | webkit/plugins/plugin_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698