diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 10:15:58 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 10:15:58 +0000 |
commit | 3ced98f4dad7b83de0d7b5f3fd9452c556799822 (patch) | |
tree | 8fb121dbcbb6a00b2d6632c4210b52437fdcfc8b /chrome/renderer | |
parent | 0676a96af598e97e3b6016cd3675e2f424dc8407 (diff) | |
download | chromium_src-3ced98f4dad7b83de0d7b5f3fd9452c556799822.zip chromium_src-3ced98f4dad7b83de0d7b5f3fd9452c556799822.tar.gz chromium_src-3ced98f4dad7b83de0d7b5f3fd9452c556799822.tar.bz2 |
Sandbox warmup - localtime().
Review URL: http://codereview.chromium.org/28120
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/renderer_main_platform_delegate_mac.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_main_platform_delegate_mac.mm b/chrome/renderer/renderer_main_platform_delegate_mac.mm index 0791c57..4705aea 100644 --- a/chrome/renderer/renderer_main_platform_delegate_mac.mm +++ b/chrome/renderer/renderer_main_platform_delegate_mac.mm @@ -47,6 +47,10 @@ void RendererMainPlatformDelegate::PlatformInitialize() { NSColor *color = [NSColor controlTextColor]; [color colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; + // Warm up localtime(). + time_t tv = {0}; + localtime(&tv); + #if 0 // Note: by default, Cocoa is NOT thread safe. Use of NSThreads |