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

Side by Side Diff: base/file_util_posix.cc

Issue 243102: Convert base dependencies to use sys_string_conversions instead of the ICU... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « base/file_util.cc ('k') | base/file_util_unittest.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "base/file_util.h" 5 #include "base/file_util.h"
6 6
7 #include <dirent.h> 7 #include <dirent.h>
8 #include <errno.h> 8 #include <errno.h>
9 #include <fcntl.h> 9 #include <fcntl.h>
10 #include <fnmatch.h> 10 #include <fnmatch.h>
(...skipping 16 matching lines...) Expand all
27 #include "base/basictypes.h" 27 #include "base/basictypes.h"
28 #include "base/eintr_wrapper.h" 28 #include "base/eintr_wrapper.h"
29 #include "base/file_path.h" 29 #include "base/file_path.h"
30 #include "base/lock.h" 30 #include "base/lock.h"
31 #include "base/logging.h" 31 #include "base/logging.h"
32 #include "base/scoped_ptr.h" 32 #include "base/scoped_ptr.h"
33 #include "base/singleton.h" 33 #include "base/singleton.h"
34 #include "base/string_util.h" 34 #include "base/string_util.h"
35 #include "base/sys_string_conversions.h" 35 #include "base/sys_string_conversions.h"
36 #include "base/time.h" 36 #include "base/time.h"
37 #include "base/utf_string_conversions.h"
37 #include "unicode/coll.h" 38 #include "unicode/coll.h"
38 39
39 40
40 namespace { 41 namespace {
41 42
42 class LocaleAwareComparator { 43 class LocaleAwareComparator {
43 public: 44 public:
44 LocaleAwareComparator() { 45 LocaleAwareComparator() {
45 UErrorCode error_code = U_ZERO_ERROR; 46 UErrorCode error_code = U_ZERO_ERROR;
46 // Use the default collator. The default locale should have been properly 47 // Use the default collator. The default locale should have been properly
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 munmap(data_, length_); 745 munmap(data_, length_);
745 if (file_ != -1) 746 if (file_ != -1)
746 close(file_); 747 close(file_);
747 748
748 data_ = NULL; 749 data_ = NULL;
749 length_ = 0; 750 length_ = 0;
750 file_ = -1; 751 file_ = -1;
751 } 752 }
752 753
753 } // namespace file_util 754 } // namespace file_util
OLDNEW
« no previous file with comments | « base/file_util.cc ('k') | base/file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698