diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-24 22:17:09 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-24 22:17:09 +0000 |
commit | f37579e600aab07b8e5d5f0489b47b6aa7cff68a (patch) | |
tree | 7dcf822fad156e23f2aa2d6eed2eb0f5633e2108 /content/browser/web_contents/web_drag_dest_gtk.cc | |
parent | eff4300b7d570c5a7523351372952dc036794b53 (diff) | |
download | chromium_src-f37579e600aab07b8e5d5f0489b47b6aa7cff68a.zip chromium_src-f37579e600aab07b8e5d5f0489b47b6aa7cff68a.tar.gz chromium_src-f37579e600aab07b8e5d5f0489b47b6aa7cff68a.tar.bz2 |
Switch DropData's path field from a string16 to a FilePath.
Review URL: https://codereview.chromium.org/38933002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/web_contents/web_drag_dest_gtk.cc')
-rw-r--r-- | content/browser/web_contents/web_drag_dest_gtk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/web_contents/web_drag_dest_gtk.cc b/content/browser/web_contents/web_drag_dest_gtk.cc index 55f0d9c..67861f2 100644 --- a/content/browser/web_contents/web_drag_dest_gtk.cc +++ b/content/browser/web_contents/web_drag_dest_gtk.cc @@ -204,7 +204,7 @@ void WebDragDestGtk::OnDragDataReceived( if (url.SchemeIs(chrome::kFileScheme) && net::FileURLToFilePath(url, &file_path)) { drop_data_->filenames.push_back( - DropData::FileInfo(UTF8ToUTF16(file_path.value()), string16())); + DropData::FileInfo(file_path, string16())); // This is a hack. Some file managers also populate text/plain with // a file URL when dragging files, so we clear it to avoid exposing // it to the web content. |