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

Unified Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 10548031: [Mac] More descriptive process name for flapper. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Only when out-of-process. Created 8 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
« no previous file with comments | « content/ppapi_plugin/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_thread.cc
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
index eab38dc3bbde973f8d1759156318ad2a55caab39..e79abe57ff7ac8c8f9aac5ebb9aeddad77003e81 100644
--- a/content/ppapi_plugin/ppapi_thread.cc
+++ b/content/ppapi_plugin/ppapi_thread.cc
@@ -17,6 +17,7 @@
#include "content/ppapi_plugin/plugin_process_dispatcher.h"
#include "content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h"
#include "content/public/common/sandbox_init.h"
+#include "content/public/plugin/content_plugin_client.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_platform_file.h"
#include "ipc/ipc_sync_channel.h"
@@ -367,4 +368,11 @@ bool PpapiThread::SetupRendererChannel(int renderer_id,
void PpapiThread::SavePluginName(const FilePath& path) {
ppapi::proxy::PluginGlobals::Get()->set_plugin_name(
path.BaseName().AsUTF8Unsafe());
+
+ // plugin() is NULL when in-process. Which is fine, because this is
+ // just a hook for setting the process name.
+ if (content::GetContentClient()->plugin()) {
+ content::GetContentClient()->plugin()->PluginProcessStarted(
+ path.BaseName().RemoveExtension().LossyDisplayName());
+ }
}
« no previous file with comments | « content/ppapi_plugin/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698