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

Unified Diff: chromecast/media/cdm/cast_cdm_proxy.cc

Issue 2258493003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: chromecast/media/cdm/cast_cdm_proxy.cc
diff --git a/chromecast/media/cdm/cast_cdm_proxy.cc b/chromecast/media/cdm/cast_cdm_proxy.cc
index eeadabcb05bd68bc2783887f6fd5682199db0dca..8772819d364cd9f7bf1fd14303b07e7a80417fa6 100644
--- a/chromecast/media/cdm/cast_cdm_proxy.cc
+++ b/chromecast/media/cdm/cast_cdm_proxy.cc
@@ -69,7 +69,7 @@ void CdmPromiseInternal<T...>::resolve(const T&... result) {
template <typename... T>
std::unique_ptr<CdmPromiseInternal<T...>> BindPromiseToCurrentLoop(
std::unique_ptr<::media::CdmPromiseTemplate<T...>> promise) {
- return base::WrapUnique(new CdmPromiseInternal<T...>(std::move(promise)));
+ return base::MakeUnique<CdmPromiseInternal<T...>>(std::move(promise));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698