diff options
author | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 22:40:20 +0000 |
---|---|---|
committer | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 22:40:20 +0000 |
commit | 87899080bbcb9df81fa21c118f2be5545ca2ec2b (patch) | |
tree | 5e5a05d0cb682670e27ce7a184b1a2ead0586b90 /base | |
parent | 74c82c1ef61339c588042c7e629f4f2672bd1af9 (diff) | |
download | chromium_src-87899080bbcb9df81fa21c118f2be5545ca2ec2b.zip chromium_src-87899080bbcb9df81fa21c118f2be5545ca2ec2b.tar.gz chromium_src-87899080bbcb9df81fa21c118f2be5545ca2ec2b.tar.bz2 |
Remove Mac-specific code to make a generic POSIX string_util for Mac and Linux.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/SConscript | 2 | ||||
-rw-r--r-- | base/string_util_posix.cc (renamed from base/string_util_mac.cc) | 16 |
2 files changed, 1 insertions, 17 deletions
diff --git a/base/SConscript b/base/SConscript index c338994..1b12a2a 100644 --- a/base/SConscript +++ b/base/SConscript @@ -165,7 +165,7 @@ if env['PLATFORM'] == 'posix': input_files.extend([ 'atomicops_internals_x86_gcc.cc', 'file_util_linux.cc', - 'string_util_mac.cc', + 'string_util_posix.cc', 'sys_string_conversions_linux.cc', ]) diff --git a/base/string_util_mac.cc b/base/string_util_posix.cc index 310f93b..320764f 100644 --- a/base/string_util_mac.cc +++ b/base/string_util_posix.cc @@ -29,34 +29,18 @@ #include "base/string_util.h" -#include <CoreFoundation/CoreFoundation.h> #include <pthread.h> #include <string> #include <vector> #include "base/logging.h" -#include "base/scoped_cftyperef.h" #include "unicode/numfmt.h" static NumberFormat* number_format_singleton = NULL; -static CFDateFormatterRef date_formatter = NULL; -static CFDateFormatterRef time_formatter = NULL; static void DoInitializeStatics() { UErrorCode status = U_ZERO_ERROR; number_format_singleton = NumberFormat::createInstance(status); DCHECK(U_SUCCESS(status)); - - scoped_cftyperef<CFLocaleRef> user_locale(CFLocaleCopyCurrent()); - date_formatter = CFDateFormatterCreate(NULL, - user_locale, - kCFDateFormatterShortStyle, // date - NULL); // time - DCHECK(date_formatter); - time_formatter = CFDateFormatterCreate(NULL, - user_locale, - NULL, // date - kCFDateFormatterShortStyle); // time - DCHECK(time_formatter); } static void InitializeStatics() { |