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

Unified Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc

Issue 2179813003: Allow OSExchangeData::Provider to be overridden at run time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac + win Created 4 years, 5 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 | « ui/views/cocoa/drag_drop_client_mac.mm ('k') | ui/views/widget/desktop_aura/desktop_drop_target_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
diff --git a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
index 1d416a62584d082134c2685b37c5def16bce622a..74c10787dc12e5ed7d74d10de627be97270de6fb 100644
--- a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
+++ b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
@@ -607,8 +607,9 @@ void DesktopDragDropClientAuraX11::OnXdndDrop(
aura::client::DragDropDelegate* delegate =
aura::client::GetDragDropDelegate(target_window_);
if (delegate) {
- ui::OSExchangeData data(new ui::OSExchangeDataProviderAuraX11(
- xwindow_, target_current_context_->fetched_targets()));
+ ui::OSExchangeData data(
+ base::MakeUnique<ui::OSExchangeDataProviderAuraX11>(
+ xwindow_, target_current_context_->fetched_targets()));
ui::DropTargetEvent event(data,
target_window_location_,
@@ -981,8 +982,9 @@ void DesktopDragDropClientAuraX11::DragTranslate(
if (!*delegate)
return;
- data->reset(new OSExchangeData(new ui::OSExchangeDataProviderAuraX11(
- xwindow_, target_current_context_->fetched_targets())));
+ data->reset(new OSExchangeData(
+ base::MakeUnique<ui::OSExchangeDataProviderAuraX11>(
+ xwindow_, target_current_context_->fetched_targets())));
gfx::Point location = root_location;
aura::Window::ConvertPointToTarget(root_window_, target_window_, &location);
« no previous file with comments | « ui/views/cocoa/drag_drop_client_mac.mm ('k') | ui/views/widget/desktop_aura/desktop_drop_target_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698