Add ICU message format support
[chromium-blink-merge.git] / content / shell / browser / shell_browser_main_parts_mac.mm
bloba933705bf1606841a6eefc2ff030b0c96d15ee22
1 // Copyright 2013 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 "content/shell/browser/shell_browser_main_parts.h"
7 #import <Cocoa/Cocoa.h>
9 #include "base/mac/bundle_locations.h"
10 #include "base/mac/scoped_nsobject.h"
11 #include "content/shell/browser/shell_application_mac.h"
13 namespace content {
15 void ShellBrowserMainParts::PreMainMessageLoopStart() {
16   // Force the NSApplication subclass to be used.
17   [ShellCrApplication sharedApplication];
19   base::scoped_nsobject<NSNib> nib(
20       [[NSNib alloc] initWithNibNamed:@"MainMenu"
21                                bundle:base::mac::FrameworkBundle()]);
22   [nib instantiateNibWithOwner:NSApp topLevelObjects:nil];
25 }  // namespace content