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

Unified Diff: chrome/plugin/chrome_content_plugin_client.cc

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format 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
« no previous file with comments | « chrome/common/service_process_util_posix.h ('k') | chrome/service/chrome_service_application_mac.mm » ('j') | 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 c6712ab1502ce6003537ef020cc091626fde878f..f9f8f0c90bd9a59f1ec651a63a57f171637fe861 100644
--- a/chrome/plugin/chrome_content_plugin_client.cc
+++ b/chrome/plugin/chrome_content_plugin_client.cc
@@ -55,14 +55,16 @@ void ChromeContentPluginClient::PreSandboxInitialization() {
void ChromeContentPluginClient::PluginProcessStarted(
const string16& plugin_name) {
#if defined(OS_MACOSX)
- base::mac::ScopedCFTypeRef<CFStringRef> cf_plugin_name(
+ base::ScopedCFTypeRef<CFStringRef> cf_plugin_name(
base::SysUTF16ToCFStringRef(plugin_name));
- base::mac::ScopedCFTypeRef<CFStringRef> app_name(
- base::SysUTF16ToCFStringRef(
- l10n_util::GetStringUTF16(IDS_SHORT_PLUGIN_APP_NAME)));
- base::mac::ScopedCFTypeRef<CFStringRef> process_name(
- CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%@ (%@)"),
- cf_plugin_name.get(), app_name.get()));
+ 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
}
« no previous file with comments | « chrome/common/service_process_util_posix.h ('k') | chrome/service/chrome_service_application_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698