Commit 03a04f20 authored by Aya ElAttar's avatar Aya ElAttar Committed by Chromium LUCI CQ

DLP: Make OSExchangeDataProvider::Clone copy source_

- Fixed OSExchangeDataProviderNonBacked::Clone
to copy the data source object.

Bug: 1154232
Change-Id: I2127ff9be7bbc5e9784b91644a8639ffea8b3893
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2563722Reviewed-by: default avatarDarwin Huang <huangdarwin@chromium.org>
Commit-Queue: Aya Elsayed <ayaelattar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#832540}
parent 31a6b6a7
...@@ -37,6 +37,9 @@ std::unique_ptr<OSExchangeDataProvider> OSExchangeDataProviderNonBacked::Clone() ...@@ -37,6 +37,9 @@ std::unique_ptr<OSExchangeDataProvider> OSExchangeDataProviderNonBacked::Clone()
// We skip copying the drag images. // We skip copying the drag images.
clone->html_ = html_; clone->html_ = html_;
clone->base_url_ = base_url_; clone->base_url_ = base_url_;
clone->source_ =
source_ ? std::make_unique<ui::DataTransferEndpoint>(*source_.get())
: nullptr;
return clone; return clone;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment