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

Unified Diff: chrome/app/chrome_main_app_mode_mac.mm

Issue 9416012: Mac: Generate App Mode Loader bundle + cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased against trunk 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 | « chrome/app/app_mode_loader_mac.mm ('k') | chrome/browser/web_applications/web_app_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b32ae3146f730a55b9a0d10aa65023d45d8d1bc2..043f87fd21fa1ffca22fd9c93107c1444341e88e 100644
--- a/chrome/app/chrome_main_app_mode_mac.mm
+++ b/chrome/app/chrome_main_app_mode_mac.mm
@@ -13,6 +13,8 @@
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/logging.h"
+#include "base/mac/bundle_locations.h"
+#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths_internal.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/mac/app_mode_common.h"
@@ -43,9 +45,13 @@ int ChromeAppModeStart(const app_mode::ChromeAppModeInfo* info) {
FilePath* chrome_versioned_path = new FilePath(info->chrome_versioned_path);
RAW_CHECK(!chrome_versioned_path->empty());
chrome::SetOverrideVersionedDirectory(chrome_versioned_path);
+ base::mac::SetOverrideOuterBundlePath(info->chrome_outer_bundle_path);
+ base::mac::SetOverrideFrameworkBundlePath(
+ chrome_versioned_path->Append(chrome::kFrameworkName));
CommandLine command_line(CommandLine::NO_PROGRAM);
command_line.AppendSwitch(info->argv[0]);
+
RAW_CHECK(info->app_mode_id.size());
command_line.AppendSwitchASCII(switches::kAppId, info->app_mode_id);
command_line.AppendSwitchPath(switches::kUserDataDir, info->user_data_dir);
« no previous file with comments | « chrome/app/app_mode_loader_mac.mm ('k') | chrome/browser/web_applications/web_app_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698