| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file declares a raw symbol and should be included only once in a | 5 // This file declares a raw symbol and should be included only once in a |
| 6 // certain binary target. This needs to be run before we raise the sandbox, | 6 // certain binary target. This needs to be run before we raise the sandbox, |
| 7 // which means that it can't use mojo. Our runners will dig around in the | 7 // which means that it can't use mojo. Our runners will dig around in the |
| 8 // symbol table and run this before the mojo system is initialized. | 8 // symbol table and run this before the mojo system is initialized. |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 | 11 |
| 12 #include "base/files/file.h" | 12 #include "base/files/file.h" |
| 13 #include "base/i18n/icu_util.h" | 13 #include "base/i18n/icu_util.h" |
| 14 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
| 15 #include "base/sys_info.h" | 16 #include "base/sys_info.h" |
| 16 #include "mojo/public/c/system/types.h" | 17 #include "mojo/public/c/system/types.h" |
| 17 | 18 |
| 18 #if !defined(OS_ANDROID) | 19 #if !defined(OS_ANDROID) |
| 19 #include "third_party/icu/source/i18n/unicode/timezone.h" | 20 #include "third_party/icu/source/i18n/unicode/timezone.h" |
| 20 #endif | 21 #endif |
| 21 | 22 |
| 22 extern "C" { | 23 extern "C" { |
| 23 #if defined(WIN32) | 24 #if defined(WIN32) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 | 42 |
| 42 #if !defined(OS_ANDROID) | 43 #if !defined(OS_ANDROID) |
| 43 // ICU DateFormat class (used in base/time_format.cc) needs to get the | 44 // ICU DateFormat class (used in base/time_format.cc) needs to get the |
| 44 // Olson timezone ID by accessing the zoneinfo files on disk. After | 45 // Olson timezone ID by accessing the zoneinfo files on disk. After |
| 45 // TimeZone::createDefault is called once here, the timezone ID is | 46 // TimeZone::createDefault is called once here, the timezone ID is |
| 46 // cached and there's no more need to access the file system. | 47 // cached and there's no more need to access the file system. |
| 47 scoped_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault()); | 48 scoped_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault()); |
| 48 #endif | 49 #endif |
| 49 } | 50 } |
| 50 } | 51 } |
| OLD | NEW |