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

Side by Side Diff: base/i18n/icu_util.h

Issue 1989333002: Fix icu_use_data_file = false. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update DEPS for ICU. Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « DEPS ('k') | base/i18n/icu_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef BASE_I18N_ICU_UTIL_H_ 5 #ifndef BASE_I18N_ICU_UTIL_H_
6 #define BASE_I18N_ICU_UTIL_H_ 6 #define BASE_I18N_ICU_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/files/memory_mapped_file.h" 10 #include "base/files/memory_mapped_file.h"
11 #include "base/i18n/base_i18n_export.h" 11 #include "base/i18n/base_i18n_export.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 13
14 #define ICU_UTIL_DATA_FILE 0
15 #define ICU_UTIL_DATA_SHARED 1
16 #define ICU_UTIL_DATA_STATIC 2
17
14 namespace base { 18 namespace base {
15 namespace i18n { 19 namespace i18n {
16 20
17 #if !defined(OS_NACL) 21 #if !defined(OS_NACL)
18 // Call this function to load ICU's data tables for the current process. This 22 // Call this function to load ICU's data tables for the current process. This
19 // function should be called before ICU is used. 23 // function should be called before ICU is used.
20 BASE_I18N_EXPORT bool InitializeICU(); 24 BASE_I18N_EXPORT bool InitializeICU();
21 25
22 #if ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE 26 #if ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE
23 #if defined(OS_ANDROID) 27 #if defined(OS_ANDROID)
(...skipping 30 matching lines...) Expand all
54 #endif // ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE 58 #endif // ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE
55 #endif // !defined(OS_NACL) 59 #endif // !defined(OS_NACL)
56 60
57 // In a test binary, the call above might occur twice. 61 // In a test binary, the call above might occur twice.
58 BASE_I18N_EXPORT void AllowMultipleInitializeCallsForTesting(); 62 BASE_I18N_EXPORT void AllowMultipleInitializeCallsForTesting();
59 63
60 } // namespace i18n 64 } // namespace i18n
61 } // namespace base 65 } // namespace base
62 66
63 #endif // BASE_I18N_ICU_UTIL_H_ 67 #endif // BASE_I18N_ICU_UTIL_H_
OLDNEW
« no previous file with comments | « DEPS ('k') | base/i18n/icu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698