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

Unified Diff: chrome/app/app_mode_loader_mac.mm

Issue 9374009: Install platform apps into a separate data directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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
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 aef5ea5edd2acdc0d7380a45bb95ddac3ebd5bc0..5ae599ef53bf58f6af632e8a4e40b38bb2440f3c 100644
--- a/chrome/app/app_mode_loader_mac.mm
+++ b/chrome/app/app_mode_loader_mac.mm
@@ -16,6 +16,7 @@
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/logging.h"
+#include "base/mac/foundation_util.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/sys_string_conversions.h"
#import "chrome/common/mac/app_mode_chrome_locator.h"
@@ -101,6 +102,9 @@ void LoadFramework(void** cr_dylib, app_mode::ChromeAppModeInfo* info) {
[info_plist objectForKey:@"CrAppModeShortcutURL"]);
//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);
« no previous file with comments | « no previous file | chrome/app/chrome_main_app_mode_mac.mm » ('j') | chrome/browser/extensions/extension_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698