summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/mac/app_mode_common.h13
-rw-r--r--chrome/common/mac/app_mode_common.mm2
2 files changed, 11 insertions, 4 deletions
diff --git a/chrome/common/mac/app_mode_common.h b/chrome/common/mac/app_mode_common.h
index 265e047..4b604ff 100644
--- a/chrome/common/mac/app_mode_common.h
+++ b/chrome/common/mac/app_mode_common.h
@@ -15,6 +15,13 @@
namespace app_mode {
+// Keys for a custom 'launch platform app' Apple event. When Chrome receives
+// this event, it should launch the app specified by the direct key in the
+// event, in the profile specified by the 'pdir' key.
+const AEEventClass kAEChromeAppClass = 'cApp';
+const AEEventID kAEChromeAppLaunch = 'lnch';
+const AEKeyword kAEProfileDirKey = 'pdir';
+
// The key under which the browser's bundle ID will be stored in the
// app mode launcher bundle's Info.plist.
extern NSString* const kBrowserBundleIDKey;
@@ -32,7 +39,7 @@ extern NSString* const kCrAppModeShortcutURLKey;
extern NSString* const kCrAppModeUserDataDirKey;
// Key for the app's extension path.
-extern NSString* const kCrAppModeExtensionPathKey;
+extern NSString* const kCrAppModeProfileDirKey;
// When the Chrome browser is run, it stores its location in the defaults
// system using this key.
@@ -92,8 +99,8 @@ struct ChromeAppModeInfo {
// Path to the app's user data directory.
FilePath user_data_dir;
- // Path to the app's extension.
- FilePath extension_path;
+ // Directory of the profile associated with the app.
+ FilePath profile_dir;
};
} // namespace app_mode
diff --git a/chrome/common/mac/app_mode_common.mm b/chrome/common/mac/app_mode_common.mm
index c6d5573..3efcccb 100644
--- a/chrome/common/mac/app_mode_common.mm
+++ b/chrome/common/mac/app_mode_common.mm
@@ -11,7 +11,7 @@ NSString* const kCrAppModeShortcutIDKey = @"CrAppModeShortcutID";
NSString* const kCrAppModeShortcutNameKey = @"CrAppModeShortcutName";
NSString* const kCrAppModeShortcutURLKey = @"CrAppModeShortcutURL";
NSString* const kCrAppModeUserDataDirKey = @"CrAppModeUserDataDir";
-NSString* const kCrAppModeExtensionPathKey = @"CrAppModeExtensionPath";
+NSString* const kCrAppModeProfileDirKey = @"CrAppModeProfileDir";
NSString* const kLastRunAppBundlePathPrefsKey = @"LastRunAppBundlePath";