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

Unified Diff: base/file_util.cc

Issue 9484003: Cleanup: Deprecate wstring version of file_util::CopyDirectory(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/file_util_deprecated.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util.cc
===================================================================
--- base/file_util.cc (revision 124714)
+++ base/file_util.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -394,21 +394,6 @@
path->append(new_ending);
}
-bool CopyDirectory(const std::wstring& from_path, const std::wstring& to_path,
- bool recursive) {
- return CopyDirectory(FilePath::FromWStringHack(from_path),
- FilePath::FromWStringHack(to_path),
- recursive);
-}
-bool Delete(const std::wstring& path, bool recursive) {
- return Delete(FilePath::FromWStringHack(path), recursive);
-}
-std::wstring GetFileExtensionFromPath(const std::wstring& path) {
- std::wstring file_name = FilePath(path).BaseName().value();
- const std::wstring::size_type last_dot = file_name.rfind(kExtensionSeparator);
- return std::wstring(last_dot == std::wstring::npos ? L""
- : file_name, last_dot + 1);
-}
FILE* OpenFile(const std::wstring& filename, const char* mode) {
return OpenFile(FilePath::FromWStringHack(filename), mode);
}
« no previous file with comments | « no previous file | base/file_util_deprecated.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698