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

Unified Diff: win8/metro_driver/file_picker.cc

Issue 12217101: Replace FilePath with base::FilePath in some more top level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
Index: win8/metro_driver/file_picker.cc
diff --git a/win8/metro_driver/file_picker.cc b/win8/metro_driver/file_picker.cc
index 71bd8fc39f24dd99b8971fa04aa6e250c9cfa3e2..4979f4cd22b2443ebceec2da5f924b74dbcc0bd4 100644
--- a/win8/metro_driver/file_picker.cc
+++ b/win8/metro_driver/file_picker.cc
@@ -319,7 +319,7 @@ HRESULT OpenFilePickerSession::StartFilePicker() {
hr = extension.Set(L"*");
} else {
// Metro wants suffixes only, not patterns.
- string16 ext = FilePath(extensions_win32_style[i]).Extension();
+ string16 ext = base::FilePath(extensions_win32_style[i]).Extension();
if ((ext.size() < 2) ||
(ext.find_first_of(L"*?") != string16::npos)) {
continue;
@@ -391,7 +391,7 @@ HRESULT OpenFilePickerSession::ComposeMultiFileResult(
}
// This stores the base path that should be the parent of all the files.
- FilePath base_path;
+ base::FilePath base_path;
// Iterate through the collection and append the file paths to the result.
for (unsigned int i = 0; i < num_files; ++i) {
@@ -410,7 +410,7 @@ HRESULT OpenFilePickerSession::ComposeMultiFileResult(
if (FAILED(hr))
return hr;
- FilePath file_path(MakeStdWString(file_path_str.Get()));
+ base::FilePath file_path(MakeStdWString(file_path_str.Get()));
if (base_path.empty()) {
DCHECK(result->empty());
base_path = file_path.DirName();
@@ -424,7 +424,7 @@ HRESULT OpenFilePickerSession::ComposeMultiFileResult(
DCHECK(base_path == file_path.DirName());
// Append the base name, including the terminating zero.
- FilePath base_name = file_path.BaseName();
+ base::FilePath base_name = file_path.BaseName();
result->append(base_name.value().c_str(), base_name.value().size() + 1);
}
@@ -484,7 +484,7 @@ HRESULT SaveFilePickerSession::StartFilePicker() {
// the all files ("*") pattern in the save picker.
std::vector<string16> extensions;
for (size_t i = 0; i < extensions_win32_style.size(); ++i) {
- string16 ext = FilePath(extensions_win32_style[i]).Extension();
+ string16 ext = base::FilePath(extensions_win32_style[i]).Extension();
if ((ext.size() < 2) ||
(ext.find_first_of(L"*?") != string16::npos))
continue;
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views_unittest.cc ('k') | win8/metro_driver/file_picker_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698