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

Unified Diff: chrome/plugin/chrome_content_plugin_client.cc

Issue 45253002: Do not use set process names in the Activity Monitor, using Process Manager functions in the proces… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: grd fix Created 7 years, 2 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 | « chrome/plugin/chrome_content_plugin_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/chrome_content_plugin_client.cc
diff --git a/chrome/plugin/chrome_content_plugin_client.cc b/chrome/plugin/chrome_content_plugin_client.cc
index f9f8f0c90bd9a59f1ec651a63a57f171637fe861..4e1dee7d4b1e43f2835e6bf5feb0d5e140cb386d 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
« no previous file with comments | « chrome/plugin/chrome_content_plugin_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698