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

Unified Diff: content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc

Issue 16927005: Use {As,From}UTF16Unsafe instead of file_path_string_conversions.{h,cc}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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 | content/browser/in_process_webkit/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc
diff --git a/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc b/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc
index b503003175f34e37ddcd51bb991e8cc21278c416..69b7fb30a18b9d866abc91ea7b6fb7287f80077a 100644
--- a/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc
+++ b/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc
@@ -9,7 +9,6 @@
#include "base/sys_info.h"
#include "content/browser/gpu/browser_gpu_channel_host_factory.h"
#include "third_party/WebKit/public/platform/WebString.h"
-#include "webkit/base/file_path_string_conversions.h"
namespace content {
@@ -95,14 +94,14 @@ void BrowserWebKitPlatformSupportImpl::getPluginList(bool refresh,
int BrowserWebKitPlatformSupportImpl::databaseDeleteFile(
const WebKit::WebString& vfs_file_name, bool sync_dir) {
- const base::FilePath path = webkit_base::WebStringToFilePath(vfs_file_name);
+ const base::FilePath& path = base::FilePath::FromUTF16Unsafe(vfs_file_name);
return file_util::Delete(path, false) ? 0 : 1;
}
long long BrowserWebKitPlatformSupportImpl::availableDiskSpaceInBytes(
const WebKit::WebString& fileName) {
return base::SysInfo::AmountOfFreeDiskSpace(
- webkit_base::WebStringToFilePath(fileName));
+ base::FilePath::FromUTF16Unsafe(fileName));
}
} // namespace content
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698