diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-11 02:04:13 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-11 02:04:13 +0000 |
commit | b6b72227799d289f829a164265568c834e0b0aa7 (patch) | |
tree | 7afd9b517fe9313df5c103b333d4ea12bc546fbc /base/file_util_mac.mm | |
parent | aec6dc05d918328bac097bc8e0c9c02241fb1a07 (diff) | |
download | chromium_src-b6b72227799d289f829a164265568c834e0b0aa7.zip chromium_src-b6b72227799d289f829a164265568c834e0b0aa7.tar.gz chromium_src-b6b72227799d289f829a164265568c834e0b0aa7.tar.bz2 |
Publish app shortcuts on Mac
With this CL when installing a platform app we do the following
- copy the stub App Mode Loader.app bundle to a tmp folder with the correct app name
- update the info plist
- copy the final app to /Applications
- if we don't have write permission to /Application then we copy the app to ~/Application instead
Note, for now I'm putting this feature behind a --enable-platform-apps flag.
BUG=112651
TEST=
Review URL: http://codereview.chromium.org/9346013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121613 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_mac.mm')
-rw-r--r-- | base/file_util_mac.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/file_util_mac.mm b/base/file_util_mac.mm index bb4975d..0638167 100644 --- a/base/file_util_mac.mm +++ b/base/file_util_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. @@ -9,6 +9,7 @@ #include "base/basictypes.h" #include "base/file_path.h" +#include "base/mac/foundation_util.h" #include "base/string_util.h" #include "base/threading/thread_restrictions.h" @@ -18,7 +19,7 @@ bool GetTempDir(FilePath* path) { NSString* tmp = NSTemporaryDirectory(); if (tmp == nil) return false; - *path = FilePath([tmp fileSystemRepresentation]); + *path = base::mac::NSStringToFilePath(tmp); return true; } |