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

Issue 159216: Linux: add support for tm_zone to localtime via the sandbox. (Closed)

Created:
11 years, 5 months ago by agl
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Linux: add support for tm_zone to localtime via the sandbox. Glibc adds a field to struct tm, tm_zone, which contains a pointer to a string for the current time zone. Since this makes struct tm a non-POD data type, it only works for the non-thread-safe localtime() call, not localtime_r(). However, V8 relies on it so this patch adds support for passing it through our sandbox. BUG=17458

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -8 lines) Patch
M chrome/browser/renderer_host/render_sandbox_host_linux.cc View 1 chunk +6 lines, -4 lines 1 comment Download
M chrome/browser/zygote_main_linux.cc View 2 chunks +15 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
agl
11 years, 5 months ago (2009-07-22 19:01:52 UTC) #1
tony
11 years, 5 months ago (2009-07-22 20:01:41 UTC) #2
LGTM

http://codereview.chromium.org/159216/diff/1/2
File chrome/browser/renderer_host/render_sandbox_host_linux.cc (right):

http://codereview.chromium.org/159216/diff/1/2#newcode303
Line 303: const std::string result_string(reinterpret_cast<const
char*>(expanded_time),
Nit: 80 cols.

Powered by Google App Engine
This is Rietveld 408576698