Index: content/ppapi_plugin/ppapi_plugin_main.cc |
diff --git a/content/ppapi_plugin/ppapi_plugin_main.cc b/content/ppapi_plugin/ppapi_plugin_main.cc |
index ca73f49272b2c2ba71bb41de696f4970e406786c..c6fb5be8f85bb92069f8bf1b367a92d9410ca8ff 100644 |
--- a/content/ppapi_plugin/ppapi_plugin_main.cc |
+++ b/content/ppapi_plugin/ppapi_plugin_main.cc |
@@ -9,6 +9,7 @@ |
#include "base/threading/platform_thread.h" |
#include "build/build_config.h" |
#include "content/child/child_process.h" |
+#include "content/common/content_constants_internal.h" |
#include "content/common/sandbox_linux.h" |
#include "content/ppapi_plugin/ppapi_thread.h" |
#include "content/public/common/content_client.h" |
@@ -81,6 +82,9 @@ int PpapiPluginMain(const MainFunctionParams& parameters) { |
base::MessageLoop main_message_loop; |
base::PlatformThread::SetName("CrPPAPIMain"); |
+ base::debug::TraceLog::GetInstance()->SetProcessName("PPAPI Process"); |
+ base::debug::TraceLog::GetInstance()->SetProcessSortIndex( |
+ kTraceEventPpapiProcessSortIndex); |
#if defined(OS_LINUX) && defined(USE_NSS) |
// Some out-of-process PPAPI plugins use NSS. |