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

Unified Diff: base/file_util_deprecated.h

Issue 9691059: Cleanup: Remove remaining deprecated file_util functions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « base/file_util.cc ('k') | chrome/browser/importer/ie_importer_unittest_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_deprecated.h
===================================================================
--- base/file_util_deprecated.h (revision 126437)
+++ base/file_util_deprecated.h (working copy)
@@ -1,40 +0,0 @@
-// 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.
-
-// We're trying to transition away from paths as wstrings into using
-// FilePath objects. This file contains declarations of deprecated
-// functions. By hiding them here rather in the main header, we hope
-// to discourage callers.
-
-// See file_util.h for documentation on all functions that don't have
-// documentation here.
-
-#ifndef BASE_FILE_UTIL_DEPRECATED_H_
-#define BASE_FILE_UTIL_DEPRECATED_H_
-#pragma once
-
-#include "base/base_export.h"
-#include "build/build_config.h"
-
-// We've successfully deprecated all of these functions on non-Windows
-// platforms.
-
-#if !defined(OS_WIN)
-#error Do not include on non-Windows platforms.
-#endif
-
-namespace file_util {
-
-// Use the FilePath versions instead.
-BASE_EXPORT FILE* OpenFile(const std::string& filename, const char* mode);
-BASE_EXPORT FILE* OpenFile(const std::wstring& filename, const char* mode);
-
-// Use version that takes a FilePath.
-BASE_EXPORT int ReadFile(const std::wstring& filename, char* data, int size);
-BASE_EXPORT int WriteFile(const std::wstring& filename,
- const char* data, int size);
-
-} // namespace file_util
-
-#endif // BASE_FILE_UTIL_DEPRECATED_H_
« no previous file with comments | « base/file_util.cc ('k') | chrome/browser/importer/ie_importer_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698