summaryrefslogtreecommitdiff
path: root/chromium/ash/shell/shell_main_parts_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ash/shell/shell_main_parts_mac.mm')
-rw-r--r--chromium/ash/shell/shell_main_parts_mac.mm30
1 files changed, 30 insertions, 0 deletions
diff --git a/chromium/ash/shell/shell_main_parts_mac.mm b/chromium/ash/shell/shell_main_parts_mac.mm
new file mode 100644
index 00000000000..292e1d5ff89
--- /dev/null
+++ b/chromium/ash/shell/shell_main_parts_mac.mm
@@ -0,0 +1,30 @@
+// 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 "ash/shell/shell_main_parts.h"
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/i18n/icu_util.h"
+#include "base/mac/bundle_locations.h"
+#include "base/mac/scoped_nsobject.h"
+#include "ui/base/resource/resource_bundle.h"
+#include "ui/base/ui_base_paths.h"
+
+namespace ash {
+namespace shell {
+
+void PreMainMessageLoopStart() {
+ ui::RegisterPathProvider();
+ icu_util::Initialize();
+ ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
+
+ base::scoped_nsobject<NSNib> nib(
+ [[NSNib alloc] initWithNibNamed:@"MainMenu"
+ bundle:base::mac::FrameworkBundle()]);
+ [nib instantiateNibWithOwner:NSApp topLevelObjects:nil];
+}
+
+} // namespace shell
+} // namespace ash