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
..
2017-09-15 05:02:56 +00:00
2018-06-19 14:00:39 +00:00
2018-01-12 16:35:09 +00:00
2018-06-19 14:00:39 +00:00
2018-05-31 07:28:34 +00:00
2018-06-21 09:32:56 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-28 12:54:22 +00:00
2018-06-28 12:54:22 +00:00
2017-09-15 05:02:56 +00:00
2018-05-02 10:15:56 +00:00
2018-05-02 10:15:56 +00:00
2018-01-05 18:21:29 +00:00
2018-01-05 18:21:29 +00:00
2018-01-12 16:35:09 +00:00
2018-01-12 16:35:09 +00:00
2018-06-21 09:32:56 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2017-09-15 05:02:56 +00:00
2018-06-19 14:00:39 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2018-03-05 08:32:52 +00:00
2018-06-19 14:00:39 +00:00
2017-09-15 05:02:56 +00:00
2018-06-19 14:00:39 +00:00
2018-06-21 11:12:30 +00:00
2018-06-21 11:12:30 +00:00
2018-02-22 15:43:58 +00:00
2018-06-19 14:00:39 +00:00
2018-02-01 14:05:14 +00:00
2018-06-19 14:00:39 +00:00
2018-06-28 12:54:22 +00:00
2018-06-28 12:54:22 +00:00
2017-11-01 15:21:06 +00:00
2018-06-21 11:12:30 +00:00
2017-09-15 05:02:56 +00:00
2018-07-05 10:59:49 +00:00
2018-05-02 10:15:56 +00:00
2018-06-19 14:00:39 +00:00
2018-06-21 09:22:50 +00:00
2018-06-21 09:22:50 +00:00
2018-06-21 09:22:50 +00:00
2018-06-21 09:22:50 +00:00
2018-03-23 19:26:55 +00:00
2018-01-05 18:10:29 +00:00
2018-05-28 09:28:59 +00:00
2018-05-28 09:28:59 +00:00
2018-06-21 09:32:56 +00:00
2018-06-19 14:00:39 +00:00
2018-06-21 09:32:56 +00:00
2018-06-19 14:00:39 +00:00
2017-09-15 05:02:56 +00:00
2018-06-12 17:01:40 +00:00
2018-06-12 17:01:40 +00:00
2018-06-12 17:01:40 +00:00
2018-06-19 14:00:39 +00:00
2018-02-28 01:28:57 +00:00
2018-06-19 14:00:39 +00:00
2018-02-22 15:43:58 +00:00
2018-06-19 14:00:39 +00:00
2018-03-06 23:42:01 +00:00
2018-02-28 01:28:57 +00:00
2017-09-15 05:02:56 +00:00
2018-06-19 14:00:39 +00:00
2018-02-01 14:05:14 +00:00
2018-02-01 14:05:14 +00:00
2018-03-19 09:31:06 +00:00
2018-06-21 09:32:56 +00:00
2018-05-02 10:15:56 +00:00
2018-05-02 13:42:37 +00:00
2017-10-06 07:36:34 +00:00
2017-10-06 07:36:34 +00:00
2017-10-06 07:36:34 +00:00
2018-03-08 13:22:13 +00:00
2018-03-08 13:22:13 +00:00
2018-06-19 14:00:39 +00:00
2018-03-08 13:22:13 +00:00
2018-06-19 14:00:39 +00:00
2018-01-12 16:35:09 +00:00
2018-06-19 14:00:39 +00:00
2017-10-06 07:36:34 +00:00
2018-05-07 13:27:08 +00:00
2017-10-06 07:36:34 +00:00
2018-01-12 16:35:09 +00:00