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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 9346013: Publish app shortcuts on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 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/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 2189fb0a879b4cdebe4f67538fce42b9340b3fc6..e8c3e2079810889f5c3e6b1823d9739baedfcd54 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -158,9 +158,10 @@ void RecordLastRunAppBundlePath() {
// or a unit test.)
FilePath appBundlePath =
chrome::GetVersionedDirectory().DirName().DirName().DirName();
- CFPreferencesSetAppValue(app_mode::kLastRunAppBundlePathPrefsKey,
- base::SysUTF8ToCFStringRef(appBundlePath.value()),
- BaseBundleID_CFString());
+ CFPreferencesSetAppValue(
+ base::mac::NSToCFCast(app_mode::kLastRunAppBundlePathPrefsKey),
+ base::SysUTF8ToCFStringRef(appBundlePath.value()),
+ BaseBundleID_CFString());
// Sync after a delay avoid I/O contention on startup; 1500 ms is plenty.
BrowserThread::PostDelayedTask(BrowserThread::FILE, FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698