Karl Wiberg
918f50c5d1
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 10:59:49 +00:00
..
2018-07-05 10:59:49 +00:00
2018-06-21 15:57:43 +00:00
2018-06-19 14:00:39 +00:00
2018-07-04 09:25:21 +00:00
2018-07-05 10:59:49 +00:00
2018-03-27 08:11:21 +00:00
2018-03-27 08:11:21 +00:00
2018-06-07 08:46:57 +00:00
2018-06-07 08:46:57 +00:00
2018-06-04 11:53:17 +00:00
2018-06-26 11:52:45 +00:00
2017-09-15 13:03:51 +00:00
2018-03-08 17:41:13 +00:00
2018-06-26 14:34:15 +00:00
2018-06-26 14:34:15 +00:00
2018-06-07 07:49:27 +00:00
2018-03-16 13:43:01 +00:00
2018-02-20 12:41:55 +00:00
2018-02-20 12:41:55 +00:00
2018-01-22 11:48:16 +00:00
2018-06-26 11:52:45 +00:00
2018-06-26 11:52:45 +00:00
2018-03-27 08:11:21 +00:00
2018-06-26 14:34:15 +00:00
2018-06-26 14:34:15 +00:00
2018-06-26 11:52:45 +00:00
2018-06-26 11:52:45 +00:00
2018-06-26 11:52:45 +00:00
2018-06-19 14:00:39 +00:00
2018-06-05 13:52:04 +00:00
2018-06-19 14:00:39 +00:00
2018-06-18 10:24:48 +00:00
2018-05-21 19:35:08 +00:00
2018-06-19 14:00:39 +00:00
2018-06-18 10:24:48 +00:00
2017-10-25 12:33:57 +00:00
2017-09-15 13:03:51 +00:00
2017-09-15 13:03:51 +00:00
2018-06-15 09:00:25 +00:00
2018-07-04 09:31:21 +00:00
2018-06-26 11:52:45 +00:00
2018-06-15 09:00:25 +00:00
2018-06-19 14:00:39 +00:00
2017-09-15 13:03:51 +00:00
2018-07-04 09:25:21 +00:00
2017-09-15 13:03:51 +00:00
2018-06-19 14:00:39 +00:00
2018-02-20 12:41:55 +00:00
2018-03-23 14:34:48 +00:00
2018-06-19 14:00:39 +00:00
2018-05-17 10:14:31 +00:00
2018-06-18 10:24:48 +00:00
2018-06-18 10:24:48 +00:00
2018-07-04 09:31:21 +00:00
2018-06-15 09:00:25 +00:00
2017-09-15 13:03:51 +00:00
2018-06-26 11:52:45 +00:00
2018-05-09 18:18:43 +00:00
2018-06-19 14:00:39 +00:00
2018-07-04 09:07:22 +00:00
2018-01-26 10:59:56 +00:00
2017-09-15 13:03:51 +00:00
2018-06-15 09:00:25 +00:00
2018-06-11 18:39:50 +00:00
2017-09-15 13:03:51 +00:00
2018-01-17 14:47:10 +00:00
2018-06-18 10:24:48 +00:00
2018-06-18 10:24:48 +00:00
2018-06-19 14:00:39 +00:00
2018-06-21 15:57:43 +00:00
2018-03-27 08:11:21 +00:00
2018-06-21 15:57:43 +00:00
2018-06-19 14:00:39 +00:00
2018-06-18 10:24:48 +00:00
2018-07-04 09:31:21 +00:00
2018-06-19 14:00:39 +00:00
2018-07-04 09:25:21 +00:00
2018-06-21 15:57:43 +00:00