summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
index e089d9b..3af297b 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
@@ -856,20 +856,20 @@ views::View* AutocompleteEditViewGtk::AddToView(views::View* parent) {
int AutocompleteEditViewGtk::OnPerformDrop(
const views::DropTargetEvent& event) {
- std::wstring text;
+ string16 text;
const ui::OSExchangeData& data = event.data();
if (data.HasURL()) {
GURL url;
- std::wstring title;
+ string16 title;
if (data.GetURLAndTitle(&url, &title))
- text = UTF8ToWide(url.spec());
+ text = UTF8ToUTF16(url.spec());
} else {
- std::wstring data_string;
+ string16 data_string;
if (data.GetString(&data_string))
text = CollapseWhitespace(data_string, true);
}
- if (!text.empty() && OnPerformDropImpl(WideToUTF16(text)))
+ if (!text.empty() && OnPerformDropImpl(text))
return CopyOrLinkDragOperation(event.source_operations());
return ui::DragDropTypes::DRAG_NONE;