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

Unified Diff: webkit/glue/chrome_client_impl.cc

Issue 63093: Refactoring; switch the |filter| parameter into something that is more amenab... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « chrome/renderer/render_view.cc ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/chrome_client_impl.cc
===================================================================
--- webkit/glue/chrome_client_impl.cc (revision 13572)
+++ webkit/glue/chrome_client_impl.cc (working copy)
@@ -497,13 +497,14 @@
bool multiple_files = fileChooser->allowsMultipleFiles();
- std::wstring suggestion;
+ FilePath suggestion;
if (fileChooser->filenames().size() > 0)
- suggestion = webkit_glue::StringToStdWString(fileChooser->filenames()[0]);
+ suggestion = FilePath(
+ webkit_glue::StringToFilePathString(fileChooser->filenames()[0]));
- WebFileChooserCallbackImpl* chooser = new WebFileChooserCallbackImpl(fileChooser);
- delegate->RunFileChooser(multiple_files, std::wstring(), suggestion,
- std::wstring(), chooser);
+ WebFileChooserCallbackImpl* chooser =
+ new WebFileChooserCallbackImpl(fileChooser);
+ delegate->RunFileChooser(multiple_files, string16(), suggestion, chooser);
}
void ChromeClientImpl::popupOpened(WebCore::PopupContainer* popup_container,
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698