diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-23 00:39:09 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-23 00:39:09 +0000 |
commit | d7477f0b2741496cf920ada77781c09d29201208 (patch) | |
tree | 464f633951a6f84e8cda1301fe3b7558c719a61e /base/i18n | |
parent | ac1128e3801134c30a848eed0db7298826f8449b (diff) | |
download | chromium_src-d7477f0b2741496cf920ada77781c09d29201208.zip chromium_src-d7477f0b2741496cf920ada77781c09d29201208.tar.gz chromium_src-d7477f0b2741496cf920ada77781c09d29201208.tar.bz2 |
base: Minor cleanups in icu_util.h
- Move it into base::i18n namespace. That is the namespace that should be used
there.
- Consequently, rename the function to InitializeICU().
R=brettw@chromium.org
TBR=ben,thestig,jam
Review URL: https://chromiumcodereview.appspot.com/22875025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/i18n')
-rw-r--r-- | base/i18n/icu_util.cc | 10 | ||||
-rw-r--r-- | base/i18n/icu_util.h | 8 |
2 files changed, 10 insertions, 8 deletions
diff --git a/base/i18n/icu_util.cc b/base/i18n/icu_util.cc index 76016d0..3e1353b4 100644 --- a/base/i18n/icu_util.cc +++ b/base/i18n/icu_util.cc @@ -50,11 +50,10 @@ #endif #endif -using base::FilePath; +namespace base { +namespace i18n { -namespace icu_util { - -bool Initialize() { +bool InitializeICU() { #ifndef NDEBUG // Assert that we are not called more than once. Even though calling this // function isn't harmful (ICU can handle it), being called twice probably @@ -132,4 +131,5 @@ bool Initialize() { #endif } -} // namespace icu_util +} // namespace i18n +} // namespace base diff --git a/base/i18n/icu_util.h b/base/i18n/icu_util.h index f6356f1..ef5dede 100644 --- a/base/i18n/icu_util.h +++ b/base/i18n/icu_util.h @@ -7,12 +7,14 @@ #include "base/i18n/base_i18n_export.h" -namespace icu_util { +namespace base { +namespace i18n { // Call this function to load ICU's data tables for the current process. This // function should be called before ICU is used. -BASE_I18N_EXPORT bool Initialize(); +BASE_I18N_EXPORT bool InitializeICU(); -} // namespace icu_util +} // namespace i18n +} // namespace base #endif // BASE_I18N_ICU_UTIL_H_ |