• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/app/chrome_main_mac.h"
6
7#import <Cocoa/Cocoa.h>
8
9#include <string>
10
11#include "base/basictypes.h"
12#include "base/files/file_path.h"
13#include "base/logging.h"
14#import "base/mac/bundle_locations.h"
15#import "base/mac/foundation_util.h"
16#import "base/mac/scoped_nsautorelease_pool.h"
17#include "base/strings/sys_string_conversions.h"
18#include "chrome/common/chrome_paths_internal.h"
19
20void SetUpBundleOverrides() {
21  base::mac::ScopedNSAutoreleasePool pool;
22
23  base::mac::SetOverrideFrameworkBundlePath(chrome::GetFrameworkBundlePath());
24
25  NSBundle* base_bundle = chrome::OuterAppBundle();
26  base::mac::SetBaseBundleID([[base_bundle bundleIdentifier] UTF8String]);
27}
28