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

Unified Diff: chrome/app/app_mode_loader_mac.mm

Issue 9423048: Add user data dir field to Mac platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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 | « no previous file | chrome/app/chrome_main_app_mode_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 9a1a3917736856b1818ab82cfc97914f59a181e1..80dc8088a8c41446c57ba7d647548f17bd5d4425 100644
--- a/chrome/app/app_mode_loader_mac.mm
+++ b/chrome/app/app_mode_loader_mac.mm
@@ -95,6 +95,9 @@ void LoadFramework(void** cr_dylib, app_mode::ChromeAppModeInfo* info) {
[info_plist objectForKey:app_mode::kCrAppModeShortcutURLKey]);
CHECK(info->app_mode_url.size()) << "couldn't get app shortcut URL";
+ info->user_data_dir = base::mac::NSStringToFilePath(
+ [info_plist objectForKey:app_mode::kCrAppModeUserDataDirKey]);
+
// Open the framework.
*cr_dylib = dlopen(framework_shlib_path.value().c_str(), RTLD_LAZY);
CHECK(cr_dylib) << "couldn't load framework: " << dlerror();
« no previous file with comments | « no previous file | chrome/app/chrome_main_app_mode_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698