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

Unified Diff: content/ppapi_plugin/ppapi_broker_main.cc

Issue 17451017: Process names, and predictable thread and process ordering in about:tracing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix trybots i think Created 7 years, 5 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/plugin/plugin_main.cc ('k') | content/ppapi_plugin/ppapi_plugin_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_broker_main.cc
diff --git a/content/ppapi_plugin/ppapi_broker_main.cc b/content/ppapi_plugin/ppapi_broker_main.cc
index 0fd01f8f8131e94ca762a87b41240aed3fdd91f5..3c467a323396e89fb770a021fb3a1297b833f515 100644
--- a/content/ppapi_plugin/ppapi_broker_main.cc
+++ b/content/ppapi_plugin/ppapi_broker_main.cc
@@ -6,6 +6,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/ppapi_plugin/ppapi_thread.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/main_function_params.h"
@@ -21,6 +22,9 @@ int PpapiBrokerMain(const MainFunctionParams& parameters) {
base::MessageLoop main_message_loop(base::MessageLoop::TYPE_DEFAULT);
base::PlatformThread::SetName("CrPPAPIBrokerMain");
+ base::debug::TraceLog::GetInstance()->SetProcessName("PPAPI Broker Process");
+ base::debug::TraceLog::GetInstance()->SetProcessSortIndex(
+ kTraceEventPpapiBrokerProcessSortIndex);
ChildProcess ppapi_broker_process;
ppapi_broker_process.set_main_thread(
« no previous file with comments | « content/plugin/plugin_main.cc ('k') | content/ppapi_plugin/ppapi_plugin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698