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

Unified Diff: chrome/app/chrome_main_app_mode_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/chrome_main_app_mode_mac.mm
diff --git a/chrome/app/chrome_main_app_mode_mac.mm b/chrome/app/chrome_main_app_mode_mac.mm
index 2c1789781f669b132377dff90dc2f400046d8886..34ea0205b6a51c4b69ae43de23e5a1ca61e3d726 100644
--- a/chrome/app/chrome_main_app_mode_mac.mm
+++ b/chrome/app/chrome_main_app_mode_mac.mm
@@ -48,9 +48,10 @@ int ChromeAppModeStart(const app_mode::ChromeAppModeInfo* info) {
RAW_CHECK(info->app_mode_url.size());
std::string argv1(std::string("--app-id=") + info->app_mode_id);
RAW_CHECK(info->app_mode_id.size());
- //std::string argv2(std::string("--user-data-dir=/tmp/") + info->app_mode_id);
+ std::string argv2(
+ std::string("--user-data-dir=") + info->user_data_dir.value());
char* argv[] = { info->argv[0],
- const_cast<char*>(argv1.c_str()) /*,
- const_cast<char*>(argv2.c_str()) };*/ };
+ const_cast<char*>(argv1.c_str()),
+ const_cast<char*>(argv2.c_str()) };
return ChromeMain(static_cast<int>(arraysize(argv)), argv);
}

Powered by Google App Engine
This is Rietveld 408576698