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

Unified Diff: chrome/app/app_mode_loader_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 | « base/mac/foundation_util_unittest.mm ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/app_mode_loader_mac.mm
diff --git a/chrome/app/app_mode_loader_mac.mm b/chrome/app/app_mode_loader_mac.mm
index 8ebd4f86823ee5e0430431f7286f7ea9f2efef93..a08a3082595c0e3990eebb023e78e84a8a2454fa 100644
--- a/chrome/app/app_mode_loader_mac.mm
+++ b/chrome/app/app_mode_loader_mac.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -66,15 +66,14 @@ int main(int argc, char** argv) {
// Get the bundle ID of the browser that created this app bundle.
NSString* cr_bundle_id = [app_bundle
- objectForInfoDictionaryKey:(NSString*)app_mode::kBrowserBundleIDKey];
+ objectForInfoDictionaryKey:app_mode::kBrowserBundleIDKey];
CHECK_MSG(cr_bundle_id, "couldn't get browser bundle ID");
// Get the browser bundle path.
// TODO(viettrungluu): more fun
- NSString* cr_bundle_path =
- [(NSString*)CFPreferencesCopyAppValue(
- app_mode::kLastRunAppBundlePathPrefsKey,
- (CFStringRef)cr_bundle_id) autorelease];
+ NSString* cr_bundle_path = [(NSString*)CFPreferencesCopyAppValue(
+ (CFStringRef)app_mode::kLastRunAppBundlePathPrefsKey,
+ (CFStringRef)cr_bundle_id) autorelease];
CHECK_MSG(cr_bundle_path, "couldn't get browser bundle path");
// Get the browser bundle.
@@ -109,17 +108,17 @@ int main(int argc, char** argv) {
CHECK_MSG(info_plist, "couldn't get loader Info.plist");
info.app_mode_id = NSStringToUTF8CString(
- [info_plist objectForKey:@"CrAppModeShortcutID"]);
+ [info_plist objectForKey:app_mode::kCrAppModeShortcutIDKey]);
CHECK_MSG(info.app_mode_id, "couldn't get app shortcut ID");
info.app_mode_short_name = NSStringToUTF8CString(
- [info_plist objectForKey:@"CrAppModeShortcutShortName"]);
+ [info_plist objectForKey:app_mode::kCrAppModeShortcutShortNameKey]);
info.app_mode_name = NSStringToUTF8CString(
- [info_plist objectForKey:@"CrAppModeShortcutName"]);
+ [info_plist objectForKey:app_mode::kCrAppModeShortcutNameKey]);
info.app_mode_url = NSStringToUTF8CString(
- [info_plist objectForKey:@"CrAppModeShortcutURL"]);
+ [info_plist objectForKey:app_mode::kCrAppModeShortcutURLKey]);
CHECK_MSG(info.app_mode_url, "couldn't get app shortcut URL");
// Get the framework path.
« no previous file with comments | « base/mac/foundation_util_unittest.mm ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698