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

Unified Diff: content/plugin/plugin_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/gpu/gpu_main.cc ('k') | content/ppapi_plugin/ppapi_broker_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/plugin_main.cc
diff --git a/content/plugin/plugin_main.cc b/content/plugin/plugin_main.cc
index 69415e05bc7d8f794cd2da87831f2e74572b76cf..d8518a827c68a5ce5144a0a49b4790720ced10a7 100644
--- a/content/plugin/plugin_main.cc
+++ b/content/plugin/plugin_main.cc
@@ -16,6 +16,7 @@
#include "base/threading/platform_thread.h"
#include "base/timer/hi_res_timer_manager.h"
#include "content/child/child_process.h"
+#include "content/common/content_constants_internal.h"
#include "content/plugin/plugin_thread.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/main_function_params.h"
@@ -54,6 +55,9 @@ int PluginMain(const MainFunctionParams& parameters) {
#endif
base::MessageLoop main_message_loop(base::MessageLoop::TYPE_UI);
base::PlatformThread::SetName("CrPluginMain");
+ base::debug::TraceLog::GetInstance()->SetProcessName("Plugin Process");
+ base::debug::TraceLog::GetInstance()->SetProcessSortIndex(
+ kTraceEventPluginProcessSortIndex);
base::PowerMonitor power_monitor;
base::HighResolutionTimerManager high_resolution_timer_manager;
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/ppapi_plugin/ppapi_broker_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698