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

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: rebase, address review comments 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') | chrome/browser/extensions/crx_installer.cc » ('J')
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 dc25c4bb299970007b587ba342622e5327131e8e..51d4aa8b5eee6b9727e7931c041d05f8a63afb6d 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"
@@ -92,6 +93,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') | chrome/browser/extensions/crx_installer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698