blob: 04c7f4de4a6423c00dc2e6c6db83b4c8fec78a32 [file] [log] [blame]
// Copyright 2013 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/browser/shell_browser_main_parts.h"
#import <Cocoa/Cocoa.h>
#include "base/mac/bundle_locations.h"
#include "base/mac/scoped_nsobject.h"
#include "base/mac/sdk_forward_declarations.h"
namespace content {
void ShellBrowserMainParts::PreMainMessageLoopStart() {
base::scoped_nsobject<NSNib> nib(
[[NSNib alloc] initWithNibNamed:@"MainMenu"
bundle:base::mac::FrameworkBundle()]);
NSArray* top_level_objects = nil;
[nib instantiateWithOwner:NSApp topLevelObjects:nil];
for (NSObject* object : top_level_objects)
[object retain];
}
} // namespace content