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

Unified Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 2485623002: discardable_memory: Using mojo IPC to replace Chrome IPC (Closed)
Patch Set: Rebase Created 4 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
Index: content/ppapi_plugin/ppapi_thread.cc
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
index 5829f837086061c51d729fed63072f4311e472b5..8a452c16417a060d67d6f622679209a9c3bdd598 100644
--- a/content/ppapi_plugin/ppapi_thread.cc
+++ b/content/ppapi_plugin/ppapi_thread.cc
@@ -107,7 +107,11 @@ typedef int32_t (*InitializeBrokerFunc)
(PP_ConnectInstance_Func* connect_instance_func);
PpapiThread::PpapiThread(const base::CommandLine& command_line, bool is_broker)
- : is_broker_(is_broker),
+ : ChildThreadImpl(Options::Builder()
+ .InitDiscardableMemory(
+ !command_line.HasSwitch(switches::kSingleProcess))
reveman 2016/11/18 21:55:26 sorry if I asked this already but would it be poss
Peng 2016/11/21 15:56:39 Done
Peng 2016/11/21 18:31:42 Sorry. I just tried it. But the content_browsertes
+ .Build()),
+ is_broker_(is_broker),
plugin_globals_(GetIOTaskRunner()),
connect_instance_func_(NULL),
local_pp_module_(base::RandInt(0, std::numeric_limits<PP_Module>::max())),

Powered by Google App Engine
This is Rietveld 408576698