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

Unified Diff: webkit/glue/webfileutilities_impl.cc

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « webkit/glue/web_intent_reply_data_unittest.cc ('k') | webkit/media/crypto/ppapi/clear_key_cdm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webfileutilities_impl.cc
diff --git a/webkit/glue/webfileutilities_impl.cc b/webkit/glue/webfileutilities_impl.cc
index 3241884a12bbe8a5befc97c30dbba4edcc1d92c8..fdf63a12c3416399fbcacb10c2717fcc4ae26aaa 100644
--- a/webkit/glue/webfileutilities_impl.cc
+++ b/webkit/glue/webfileutilities_impl.cc
@@ -27,7 +27,7 @@ WebFileUtilitiesImpl::~WebFileUtilitiesImpl() {
}
bool WebFileUtilitiesImpl::fileExists(const WebString& path) {
- FilePath file_path = webkit_base::WebStringToFilePath(path);
+ base::FilePath file_path = webkit_base::WebStringToFilePath(path);
return file_util::PathExists(file_path);
}
@@ -58,33 +58,33 @@ bool WebFileUtilitiesImpl::getFileInfo(const WebString& path,
}
WebString WebFileUtilitiesImpl::directoryName(const WebString& path) {
- FilePath file_path(webkit_base::WebStringToFilePath(path));
+ base::FilePath file_path(webkit_base::WebStringToFilePath(path));
return webkit_base::FilePathToWebString(file_path.DirName());
}
WebString WebFileUtilitiesImpl::pathByAppendingComponent(
const WebString& webkit_path,
const WebString& webkit_component) {
- FilePath path(webkit_base::WebStringToFilePath(webkit_path));
- FilePath component(webkit_base::WebStringToFilePath(webkit_component));
- FilePath combined_path = path.Append(component);
+ base::FilePath path(webkit_base::WebStringToFilePath(webkit_path));
+ base::FilePath component(webkit_base::WebStringToFilePath(webkit_component));
+ base::FilePath combined_path = path.Append(component);
return webkit_base::FilePathStringToWebString(combined_path.value());
}
bool WebFileUtilitiesImpl::makeAllDirectories(const WebString& path) {
DCHECK(!sandbox_enabled_);
- FilePath file_path = webkit_base::WebStringToFilePath(path);
+ base::FilePath file_path = webkit_base::WebStringToFilePath(path);
return file_util::CreateDirectory(file_path);
}
WebString WebFileUtilitiesImpl::getAbsolutePath(const WebString& path) {
- FilePath file_path(webkit_base::WebStringToFilePath(path));
+ base::FilePath file_path(webkit_base::WebStringToFilePath(path));
file_util::AbsolutePath(&file_path);
return webkit_base::FilePathStringToWebString(file_path.value());
}
bool WebFileUtilitiesImpl::isDirectory(const WebString& path) {
- FilePath file_path(webkit_base::WebStringToFilePath(path));
+ base::FilePath file_path(webkit_base::WebStringToFilePath(path));
return file_util::DirectoryExists(file_path);
}
« no previous file with comments | « webkit/glue/web_intent_reply_data_unittest.cc ('k') | webkit/media/crypto/ppapi/clear_key_cdm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698