summaryrefslogtreecommitdiffstats
path: root/webkit/glue/chrome_client_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/chrome_client_impl.cc')
-rw-r--r--webkit/glue/chrome_client_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/glue/chrome_client_impl.cc b/webkit/glue/chrome_client_impl.cc
index 02e891d..bfa6db4 100644
--- a/webkit/glue/chrome_client_impl.cc
+++ b/webkit/glue/chrome_client_impl.cc
@@ -52,17 +52,17 @@ class WebFileChooserCallbackImpl : public WebFileChooserCallback {
: file_chooser_(file_chooser) {
}
- void OnFileChoose(const std::vector<std::wstring>& file_names) {
+ virtual void OnFileChoose(const std::vector<FilePath>& file_names) {
if (file_names.empty()) {
file_chooser_->chooseFile(WebCore::String(""));
} else if (file_names.size() == 1) {
file_chooser_->chooseFile(
- webkit_glue::StdWStringToString(file_names.front()));
+ webkit_glue::FilePathStringToString(file_names.front().value()));
} else {
Vector<WebCore::String> paths;
- for (std::vector<std::wstring>::const_iterator filename =
+ for (std::vector<FilePath>::const_iterator filename =
file_names.begin(); filename != file_names.end(); ++filename) {
- paths.append(webkit_glue::StdWStringToString(*filename));
+ paths.append(webkit_glue::FilePathStringToString((*filename).value()));
}
file_chooser_->chooseFiles(paths);
}