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

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: Updates, most nits addresssed Created 7 years, 6 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
Index: content/plugin/plugin_main.cc
diff --git a/content/plugin/plugin_main.cc b/content/plugin/plugin_main.cc
index df47c2149000cd3fbf257f194e6404927e8134e4..ef6733f8e8cdb1dcb10115dfe4e13f9965060a9f 100644
--- a/content/plugin/plugin_main.cc
+++ b/content/plugin/plugin_main.cc
@@ -16,6 +16,7 @@
#include "base/strings/string_util.h"
#include "base/threading/platform_thread.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;
HighResolutionTimerManager high_resolution_timer_manager;

Powered by Google App Engine
This is Rietveld 408576698