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

Unified Diff: base/file_util.h

Issue 444083004: Remove file_util::ScopedFILE and use base version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | chrome/browser/safe_browsing/safe_browsing_store_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util.h
diff --git a/base/file_util.h b/base/file_util.h
index bb04e6297719190129efcb264e92b19b56759b86..ab1432d779146113561b7d89aab775056e3571be 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -410,28 +410,8 @@ BASE_EXPORT bool GetFileSystemType(const FilePath& path, FileSystemType* type);
BASE_EXPORT bool GetShmemTempDir(bool executable, FilePath* path);
#endif
-} // namespace base
-
-// -----------------------------------------------------------------------------
-
-namespace file_util {
-
-// Functor for |ScopedFILE| (below).
-struct ScopedFILEClose {
- inline void operator()(FILE* x) const {
- if (x)
- fclose(x);
- }
-};
-
-// Automatically closes |FILE*|s.
-typedef scoped_ptr<FILE, ScopedFILEClose> ScopedFILE;
-
-} // namespace file_util
-
// Internal --------------------------------------------------------------------
-namespace base {
namespace internal {
// Same as Move but allows paths with traversal components.
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_store_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698