Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4296)

Unified Diff: chrome/renderer/renderer_main_platform_delegate_mac.mm

Issue 28120: Sandbox warmup - localtime(). (Closed)
Patch Set: . Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_main_platform_delegate_mac.mm
diff --git a/chrome/renderer/renderer_main_platform_delegate_mac.mm b/chrome/renderer/renderer_main_platform_delegate_mac.mm
index 94958f132344649be32baf7281f0002bbe93117f..4705aea780834ebd76e868b25e8b877ebf26f8c7 100644
--- a/chrome/renderer/renderer_main_platform_delegate_mac.mm
+++ b/chrome/renderer/renderer_main_platform_delegate_mac.mm
@@ -47,7 +47,8 @@ void RendererMainPlatformDelegate::PlatformInitialize() {
NSColor *color = [NSColor controlTextColor];
[color colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
- time_t tv = time(NULL);
+ // Warm up localtime().
brettw 2009/02/25 18:00:20 I don't understand why this is here at all, and yo
+ time_t tv = {0};
John Grabowski 2009/02/25 18:29:47 I think I understand why the warm-up (sandbox so w
localtime(&tv);
#if 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698