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

Unified Diff: content/ppapi_plugin/ppapi_broker_main.cc

Issue 7529003: Make base::MessageLoops have names at construction time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make message loop name optional. Created 9 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 69333482a9d437b614bc5e6ceb43e1fef6ce1fff..f70574b559b7a64449ff3799640cca956da3a449 100644
--- a/content/ppapi_plugin/ppapi_broker_main.cc
+++ b/content/ppapi_plugin/ppapi_broker_main.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "base/message_loop.h"
-#include "base/threading/platform_thread.h"
#include "build/build_config.h"
#include "content/common/child_process.h"
#include "content/common/content_switches.h"
@@ -17,8 +16,7 @@ int PpapiBrokerMain(const MainFunctionParams& parameters) {
ChildProcess::WaitForDebugger("PpapiBroker");
}
- MessageLoop main_message_loop(MessageLoop::TYPE_DEFAULT);
- base::PlatformThread::SetName("CrPPAPIBrokerMain");
+ MessageLoop main_message_loop("CrPPAPIBrokerMain", MessageLoop::TYPE_DEFAULT);
ChildProcess ppapi_broker_process;
ppapi_broker_process.set_main_thread(new PpapiThread(true)); // Broker.
« 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