commit | 75b1c3aed7e1265eab65c1fc5516ca5cfda59284 | [log] [tgz] |
---|---|---|
author | Ivan Kotenkov <[email protected]> | Tue Oct 24 14:47:24 2017 |
committer | Commit Bot <[email protected]> | Tue Oct 24 14:47:24 2017 |
tree | b92d7096b01a60beae40a8b9f47554f7593d6ae4 | |
parent | 2701b19a9077c26a81f69af5768687951225daf4 [diff] [blame] |
Convert 0 and NULL to nullptr in components. Steps to replicate: 1. Build clang-tidy and clang-apply-replacements as described here: https://chromium.googlesource.com/chromium/src/+/lkcr/docs/clang_tidy.md 2. Build targets necessary for the change in out/gn. 3. Generate the compilation database: tools/clang/scripts/generate_compdb.py -p out/gn > compile_commands.json 4. Run clang-tidy and apply replacements: cd out/gn && PATH_TO_RUN_CLANG_TIDY/run-clang-tidy.py -p ../../ -clang-tidy-binary PATH_TO_CLANG_TIDY_BINARY -clang-apply-replacements-binary PATH_TO_CLANG_APPLY_REPLACEMENTS_BINARY -checks=-*,modernize-use-nullptr -fix -j 8 DIR_TO_CONVERT Bug: 403854, 776257 Change-Id: Ifd0c147ac6866beacffbddb0c56b20502cb4f127 Reviewed-on: https://chromium-review.googlesource.com/732308 Reviewed-by: Jochen Eisinger <[email protected]> Commit-Queue: Ivan Kotenkov <[email protected]> Cr-Commit-Position: refs/heads/master@{#511144}
diff --git a/components/update_client/crx_downloader_unittest.cc b/components/update_client/crx_downloader_unittest.cc index 40440085..ae83dc18 100644 --- a/components/update_client/crx_downloader_unittest.cc +++ b/components/update_client/crx_downloader_unittest.cc
@@ -108,7 +108,7 @@ base::ThreadTaskRunnerHandle::Get())) {} CrxDownloaderTest::~CrxDownloaderTest() { - context_ = NULL; + context_ = nullptr; // The GetInterceptor requires the message loop to run to destruct correctly. get_interceptor_.reset();