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

Side by Side Diff: base/file_util.cc

Issue 432001: Remove the deprecated version of ContentsEqual.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 1 month 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.h ('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-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <io.h> 8 #include <io.h>
9 #endif 9 #endif
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 if (!EndsWithSeparator(path)) 332 if (!EndsWithSeparator(path))
333 path->push_back(FilePath::kSeparators[0]); 333 path->push_back(FilePath::kSeparators[0]);
334 path->append(new_ending); 334 path->append(new_ending);
335 } 335 }
336 bool CopyDirectory(const std::wstring& from_path, const std::wstring& to_path, 336 bool CopyDirectory(const std::wstring& from_path, const std::wstring& to_path,
337 bool recursive) { 337 bool recursive) {
338 return CopyDirectory(FilePath::FromWStringHack(from_path), 338 return CopyDirectory(FilePath::FromWStringHack(from_path),
339 FilePath::FromWStringHack(to_path), 339 FilePath::FromWStringHack(to_path),
340 recursive); 340 recursive);
341 } 341 }
342 bool ContentsEqual(const std::wstring& filename1,
343 const std::wstring& filename2) {
344 return ContentsEqual(FilePath::FromWStringHack(filename1),
345 FilePath::FromWStringHack(filename2));
346 }
347 bool CreateDirectory(const std::wstring& full_path) { 342 bool CreateDirectory(const std::wstring& full_path) {
348 return CreateDirectory(FilePath::FromWStringHack(full_path)); 343 return CreateDirectory(FilePath::FromWStringHack(full_path));
349 } 344 }
350 bool Delete(const std::wstring& path, bool recursive) { 345 bool Delete(const std::wstring& path, bool recursive) {
351 return Delete(FilePath::FromWStringHack(path), recursive); 346 return Delete(FilePath::FromWStringHack(path), recursive);
352 } 347 }
353 bool EndsWithSeparator(std::wstring* path) { 348 bool EndsWithSeparator(std::wstring* path) {
354 return EndsWithSeparator(FilePath::FromWStringHack(*path)); 349 return EndsWithSeparator(FilePath::FromWStringHack(*path));
355 } 350 }
356 bool EndsWithSeparator(const std::wstring& path) { 351 bool EndsWithSeparator(const std::wstring& path) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 429
435 bool FileEnumerator::IsDot(const FilePath& path) { 430 bool FileEnumerator::IsDot(const FilePath& path) {
436 return FILE_PATH_LITERAL(".") == path.BaseName().value(); 431 return FILE_PATH_LITERAL(".") == path.BaseName().value();
437 } 432 }
438 433
439 bool FileEnumerator::IsDotDot(const FilePath& path) { 434 bool FileEnumerator::IsDotDot(const FilePath& path) {
440 return FILE_PATH_LITERAL("..") == path.BaseName().value(); 435 return FILE_PATH_LITERAL("..") == path.BaseName().value();
441 } 436 }
442 437
443 } // namespace 438 } // namespace
OLDNEW
« no previous file with comments | « base/file_util.h ('k') | base/file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698