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

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: Fix 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
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 46134e915f53a28577274ab5b4e12830d3ab4ffd..8db1c30e8d2e3248427ac07b571354efdd6ee0ba 100644
--- a/chrome/app/chrome_main_app_mode_mac.mm
+++ b/chrome/app/chrome_main_app_mode_mac.mm
@@ -12,6 +12,8 @@
#include "base/basictypes.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/mac/app_mode_common.h"
@@ -42,6 +44,10 @@ int ChromeAppModeStart(const app_mode::ChromeAppModeInfo* info) {
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));
+
// TODO(viettrungluu): do something intelligent with data
// return ChromeMain(info->argc, info->argv);
// For now, a cheesy hack instead.

Powered by Google App Engine
This is Rietveld 408576698