Index: ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
diff --git a/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc b/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
index a0f13fa6e39945c614d2e43762996de87b024900..a8e1ca0b075173acd9a21f01ce24ce45ace63267 100644 |
--- a/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
+++ b/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
@@ -5,6 +5,7 @@ |
#include "ui/base/dragdrop/os_exchange_data_provider_aurax11.h" |
#include "base/logging.h" |
+#include "base/memory/ptr_util.h" |
#include "base/memory/ref_counted_memory.h" |
#include "base/strings/string_split.h" |
#include "base/strings/string_util.h" |
@@ -109,10 +110,10 @@ SelectionFormatMap OSExchangeDataProviderAuraX11::GetFormatMap() const { |
std::unique_ptr<OSExchangeData::Provider> |
OSExchangeDataProviderAuraX11::Clone() const { |
- std::unique_ptr<OSExchangeDataProviderAuraX11> ret( |
- new OSExchangeDataProviderAuraX11()); |
+ OSExchangeDataProviderAuraX11* ret = new OSExchangeDataProviderAuraX11(); |
ret->format_map_ = format_map_; |
- return ret; |
dcheng
2016/07/27 17:05:44
Please keep the original code and just use std::mo
Mostyn Bramley-Moore
2016/07/27 17:34:11
Done.
|
+ |
+ return base::WrapUnique<OSExchangeData::Provider>(ret); |
} |
void OSExchangeDataProviderAuraX11::MarkOriginatedFromRenderer() { |