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

Unified Diff: chrome/app/chrome_main.cc

Issue 6594096: Clean up CF To NS Casts and make them slightly safer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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
Index: chrome/app/chrome_main.cc
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
index 15020d5e2a963d55370c459c03264af5ca669745..7d0bd3a8c6874ea840d1e99d7b360857bbdd38a6 100644
--- a/chrome/app/chrome_main.cc
+++ b/chrome/app/chrome_main.cc
@@ -268,7 +268,7 @@ void SetMacProcessName(const std::string& process_type) {
}
if (name_id) {
NSString* app_name = l10n_util::GetNSString(name_id);
- base::mac::SetProcessName(reinterpret_cast<CFStringRef>(app_name));
+ base::mac::SetProcessName(base::mac::NSToCFCast(app_name));
}
}

Powered by Google App Engine
This is Rietveld 408576698