Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / app / chrome_main_mac.mm
blob3ad24d235b9836aeabb3f37fe8f2360d95ff2f26
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.
5 #include "chrome/app/chrome_main_mac.h"
7 #import <Cocoa/Cocoa.h>
9 #include <string>
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"
20 void SetUpBundleOverrides() {
21   base::mac::ScopedNSAutoreleasePool pool;
23   base::mac::SetOverrideFrameworkBundlePath(chrome::GetFrameworkBundlePath());
25   NSBundle* base_bundle = chrome::OuterAppBundle();
26   base::mac::SetBaseBundleID([[base_bundle bundleIdentifier] UTF8String]);