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

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: fix win build 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
« no previous file with comments | « chrome/app/app_mode_loader_mac.mm ('k') | chrome/browser/extensions/app_shortcut_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index b2476250e29d6a74f1375f980a97c140391861e2..4661a52ed758f9d6e98027849193c8fabe32fa46 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,
« no previous file with comments | « chrome/app/app_mode_loader_mac.mm ('k') | chrome/browser/extensions/app_shortcut_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698