diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-09 22:36:10 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-09 22:36:10 +0000 |
commit | 180df8f8967b97a5e65472409c0e110d979fdf64 (patch) | |
tree | 58c0528f17b93b3fd9c2c628918d7a572ef2982c /content/shell/shell_browser_main_mac.mm | |
parent | 82123a437f260df718996233ecec3f7e6d9ab717 (diff) | |
download | chromium_src-180df8f8967b97a5e65472409c0e110d979fdf64.zip chromium_src-180df8f8967b97a5e65472409c0e110d979fdf64.tar.gz chromium_src-180df8f8967b97a5e65472409c0e110d979fdf64.tar.bz2 |
Make helper app, get closer to working content shell.
BUG=115784
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9656002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_browser_main_mac.mm')
-rw-r--r-- | content/shell/shell_browser_main_mac.mm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/content/shell/shell_browser_main_mac.mm b/content/shell/shell_browser_main_mac.mm new file mode 100644 index 0000000..5b8eacc --- /dev/null +++ b/content/shell/shell_browser_main_mac.mm @@ -0,0 +1,21 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "content/shell/shell_browser_main.h" + +#import <Cocoa/Cocoa.h> + +#include "base/mac/bundle_locations.h" +#include "base/memory/scoped_nsobject.h" + +namespace content { + +void ShellBrowserMainParts::PreMainMessageLoopStart() { + scoped_nsobject<NSNib> + nib([[NSNib alloc] initWithNibNamed:@"MainMenu" + bundle:base::mac::FrameworkBundle()]); + [nib instantiateNibWithOwner:NSApp topLevelObjects:nil]; +} + +} // namespace content |