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

Side by Side Diff: content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h " 5 #include "content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h "
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/sys_info.h" 9 #include "base/sys_info.h"
10 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" 10 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 void BrowserWebKitPlatformSupportImpl::getPluginList(bool refresh, 90 void BrowserWebKitPlatformSupportImpl::getPluginList(bool refresh,
91 WebKit::WebPluginListBuilder* builder) { 91 WebKit::WebPluginListBuilder* builder) {
92 NOTREACHED(); 92 NOTREACHED();
93 } 93 }
94 94
95 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile( 95 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile(
96 const WebKit::WebString& vfs_file_name, bool sync_dir) { 96 const WebKit::WebString& vfs_file_name, bool sync_dir) {
97 const base::FilePath& path = base::FilePath::FromUTF16Unsafe(vfs_file_name); 97 const base::FilePath& path = base::FilePath::FromUTF16Unsafe(vfs_file_name);
98 return file_util::Delete(path, false) ? 0 : 1; 98 return base::Delete(path, false) ? 0 : 1;
99 } 99 }
100 100
101 long long BrowserWebKitPlatformSupportImpl::availableDiskSpaceInBytes( 101 long long BrowserWebKitPlatformSupportImpl::availableDiskSpaceInBytes(
102 const WebKit::WebString& fileName) { 102 const WebKit::WebString& fileName) {
103 return base::SysInfo::AmountOfFreeDiskSpace( 103 return base::SysInfo::AmountOfFreeDiskSpace(
104 base::FilePath::FromUTF16Unsafe(fileName)); 104 base::FilePath::FromUTF16Unsafe(fileName));
105 } 105 }
106 106
107 } // namespace content 107 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_pixel_browsertest.cc ('k') | content/browser/indexed_db/indexed_db_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698