Skip to content

Commit

Permalink
[Mac] Get locale info on startup, otherwise GetApplicationLocale won'…
Browse files Browse the repository at this point in the history
…t work.
  • Loading branch information
zcbenz committed Dec 13, 2012
1 parent 712293e commit 10c21ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shell_browser_main_parts_mac.mm
Expand Up @@ -28,13 +28,17 @@
#include "content/nw/src/browser/app_controller_mac.h"
#include "content/nw/src/browser/shell_application_mac.h"
#include "content/nw/src/common/shell_switches.h"
#include "ui/base/l10n/l10n_util_mac.h"

namespace content {

void ShellBrowserMainParts::PreMainMessageLoopStart() {
// Force the NSApplication subclass to be used.
[ShellCrApplication sharedApplication];

// Initialize locale.
l10n_util::OverrideLocaleWithCocoaLocale();

AppController* delegate = [AppController alloc];
[NSApp setDelegate:delegate];

Expand Down

0 comments on commit 10c21ae

Please sign in to comment.