diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-25 20:47:00 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-25 20:47:00 +0000 |
commit | 901bc6f0153757765b80d34f0c3866747f1820e5 (patch) | |
tree | a855bd74a5610b285b0df5409cbe3c229c40a2dc /chrome/plugin | |
parent | 4a4171ad8f06933631c58f87fffb28283a030b02 (diff) | |
download | chromium_src-901bc6f0153757765b80d34f0c3866747f1820e5.zip chromium_src-901bc6f0153757765b80d34f0c3866747f1820e5.tar.gz chromium_src-901bc6f0153757765b80d34f0c3866747f1820e5.tar.bz2 |
Do not set process names in the Activity Monitor.
This involves Process Manager functions, which in 10.9 cause a WindowServer checkin, which causes "not responding" notifications on any child process that doesn't pump events (which is everything but the renderers).
BUG=304860
TEST=Plugin process on Mavericks shouldn't have an app icon to its left, shouldn't be "not responding"
R=mark@chromium.org, thakis@chromium.org
Review URL: https://codereview.chromium.org/45253002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231108 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin')
-rw-r--r-- | chrome/plugin/chrome_content_plugin_client.cc | 25 | ||||
-rw-r--r-- | chrome/plugin/chrome_content_plugin_client.h | 1 |
2 files changed, 0 insertions, 26 deletions
diff --git a/chrome/plugin/chrome_content_plugin_client.cc b/chrome/plugin/chrome_content_plugin_client.cc index f9f8f0c..4e1dee7d 100644 --- a/chrome/plugin/chrome_content_plugin_client.cc +++ b/chrome/plugin/chrome_content_plugin_client.cc @@ -17,14 +17,6 @@ #endif #endif -#if defined(OS_MACOSX) -#include "base/mac/mac_util.h" -#include "base/mac/scoped_cftyperef.h" -#include "base/strings/sys_string_conversions.h" -#include "grit/chromium_strings.h" -#include "ui/base/l10n/l10n_util.h" -#endif - namespace chrome { void ChromeContentPluginClient::PreSandboxInitialization() { @@ -52,21 +44,4 @@ void ChromeContentPluginClient::PreSandboxInitialization() { #endif // defined(ENABLE_REMOTING) } -void ChromeContentPluginClient::PluginProcessStarted( - const string16& plugin_name) { -#if defined(OS_MACOSX) - base::ScopedCFTypeRef<CFStringRef> cf_plugin_name( - base::SysUTF16ToCFStringRef(plugin_name)); - base::ScopedCFTypeRef<CFStringRef> app_name(base::SysUTF16ToCFStringRef( - l10n_util::GetStringUTF16(IDS_SHORT_PLUGIN_APP_NAME))); - base::ScopedCFTypeRef<CFStringRef> process_name( - CFStringCreateWithFormat(kCFAllocatorDefault, - NULL, - CFSTR("%@ (%@)"), - cf_plugin_name.get(), - app_name.get())); - base::mac::SetProcessName(process_name); -#endif -} - } // namespace chrome diff --git a/chrome/plugin/chrome_content_plugin_client.h b/chrome/plugin/chrome_content_plugin_client.h index 0392102..0d224f6 100644 --- a/chrome/plugin/chrome_content_plugin_client.h +++ b/chrome/plugin/chrome_content_plugin_client.h @@ -13,7 +13,6 @@ namespace chrome { class ChromeContentPluginClient : public content::ContentPluginClient { public: virtual void PreSandboxInitialization() OVERRIDE; - virtual void PluginProcessStarted(const string16& plugin_name) OVERRIDE; }; } // namespace chrome |