summaryrefslogtreecommitdiffstats
path: root/base/mac/mac_util.h
diff options
context:
space:
mode:
authorjeremya@chromium.org <jeremya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 06:24:32 +0000
committerjeremya@chromium.org <jeremya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 06:24:32 +0000
commitccfab591456e8c231a784823edcd560267bcb382 (patch)
tree7f083d4ba68a22f7b946d918c3cd2a97c4c5846e /base/mac/mac_util.h
parent289f05cc53e22a3073ffe1abc14d50f5bc258014 (diff)
downloadchromium_src-ccfab591456e8c231a784823edcd560267bcb382.zip
chromium_src-ccfab591456e8c231a784823edcd560267bcb382.tar.gz
chromium_src-ccfab591456e8c231a784823edcd560267bcb382.tar.bz2
Rearchitecting the 'app mode' code on mac for v2 apps.
A lot of the old code assumed an outdated model for v2 packaged apps on mac; specifically that they used to run in their own Chrome process with their own user data directory. This is no longer the case, and as such it's not possible to have apps running in their own process, because they need access to profile information from Chrome. This patch changes the code so that the 'app mode' .app bundles function more like shortcuts to open the app in an existing Chrome browser process (launching Chrome if it's not already running). This allows the app to be launched via Spotlight and the /Applications folder, and the user can e.g. drag the app onto the dock like a regular Mac application. There is as yet no way to trigger the shortcut creation code. BUG=168080 Review URL: https://chromiumcodereview.appspot.com/11737014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/mac/mac_util.h')
-rw-r--r--base/mac/mac_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/mac/mac_util.h b/base/mac/mac_util.h
index ff8b2b2..1a35b33 100644
--- a/base/mac/mac_util.h
+++ b/base/mac/mac_util.h
@@ -121,6 +121,10 @@ BASE_EXPORT bool WasLaunchedAsLoginOrResumeItem();
// 'Login Item' with 'hide on startup' flag. Used to suppress opening windows.
BASE_EXPORT bool WasLaunchedAsHiddenLoginItem();
+// Remove the quarantine xattr from the given file. Returns false if there was
+// an error, or true otherwise.
+BASE_EXPORT bool RemoveQuarantineAttribute(const FilePath& file_path);
+
// Run-time OS version checks. Use these instead of
// base::SysInfo::OperatingSystemVersionNumbers. Prefer the "OrEarlier" and
// "OrLater" variants to those that check for a specific version, unless you