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

Unified Diff: content/common/sandbox_mac.mm

Issue 18986012: Media Galleries API Picasa: Make PicasaDataProvider handle async PMP and INI parsing robustly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0039-picasa-import-sandbox-ini-parsing
Patch Set: expand sandbox warmup comment Created 7 years, 4 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 | « chrome/utility/media_galleries/picasa_album_table_reader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_mac.mm
diff --git a/content/common/sandbox_mac.mm b/content/common/sandbox_mac.mm
index d531f8bfef410a2ca07e051175703ddf4bc03515..bce59d10bc25dfee93d289a2a286f4b2a2cb311f 100644
--- a/content/common/sandbox_mac.mm
+++ b/content/common/sandbox_mac.mm
@@ -6,6 +6,7 @@
#import <Cocoa/Cocoa.h>
+#include <CoreFoundation/CFTimeZone.h>
extern "C" {
#include <sandbox.h>
}
@@ -307,6 +308,13 @@ void Sandbox::SandboxWarmup(int sandbox_type) {
}
// Process-type dependent warm-up.
+ if (sandbox_type == SANDBOX_TYPE_UTILITY) {
+ // CFTimeZoneCopySystem() - 10.8
+ // Allows access to the system time zone. Media Galleries uses the sandboxed
+ // utility process to read Picasa databases containing local times.
+ CFTimeZoneCopySystem();
jeremy 2013/08/30 23:26:26 How about: CFTimeZoneCopyZone() tries to read /et
tommycli 2013/08/30 23:36:56 Done.
+ }
+
if (sandbox_type == SANDBOX_TYPE_GPU) {
// Preload either the desktop GL or the osmesa so, depending on the
// --use-gl flag.
« no previous file with comments | « chrome/utility/media_galleries/picasa_album_table_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698