commit | 5c341f6dd1cf698d0ab71b75a2e35cdfee44323b | [log] [tgz] |
---|---|---|
author | Jeremy Roman <[email protected]> | Mon Jul 15 15:56:10 2019 |
committer | Commit Bot <[email protected]> | Mon Jul 15 15:56:10 2019 |
tree | be74f0121fce1ded97ef570b16c520d55356db7e | |
parent | fdea32ea62d234d5d8248163baf968117b12c276 [diff] [blame] |
Use in-class initializers for base::WeakPtrFactory in components/. Generated by: https://chromium-review.googlesource.com/c/chromium/src/+/1689216 Bug: 981415 Change-Id: I706ec55f1f533ef616f400791d69a51e9a151da1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1699508 Commit-Queue: Jeremy Roman <[email protected]> Reviewed-by: Colin Blundell <[email protected]> Cr-Commit-Position: refs/heads/master@{#677340}
diff --git a/components/ntp_tiles/icon_cacher_impl.h b/components/ntp_tiles/icon_cacher_impl.h index 25d2deb6..930716a 100644 --- a/components/ntp_tiles/icon_cacher_impl.h +++ b/components/ntp_tiles/icon_cacher_impl.h
@@ -100,7 +100,7 @@ std::unique_ptr<image_fetcher::ImageFetcher> const image_fetcher_; std::map<GURL, std::vector<base::Closure>> in_flight_requests_; - base::WeakPtrFactory<IconCacherImpl> weak_ptr_factory_; + base::WeakPtrFactory<IconCacherImpl> weak_ptr_factory_{this}; DISALLOW_COPY_AND_ASSIGN(IconCacherImpl); };