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

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed)

Created:
4 years, 8 months ago by dcheng
Modified:
4 years, 8 months ago
CC:
aboxhall+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, dmazzoni+watch_chromium.org, Dirk Pranke, dtseng+watch_chromium.org, extensions-reviews_chromium.org, jbudorick+watch_chromium.org, je_julie, mikecase+watch_chromium.org, nektar+watch_chromium.org, rginda+watch_chromium.org, tfarina, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert //tools to use std::unique_ptr BUG=554298 Committed: https://crrev.com/a500b69aa06c2bc084a3b1867b9824f4218014de Cr-Commit-Position: refs/heads/master@{#386168}

Patch Set 1 #

Total comments: 10

Patch Set 2 : review comments #

Patch Set 3 : More IWYU fails and revert GN cleanup so the right overload is called #

Total comments: 6

Patch Set 4 : address comments #

Patch Set 5 : rebase, change iwyu fixes for converted directories to include <memory> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+972 lines, -867 lines) Patch
M chrome/browser/extensions/api/developer_private/extension_info_generator.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/experience_sampling_private/experience_sampling.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/operation.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/log_private/filter_handler.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/window_controller.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/system_cpu/cpu_info_provider_win.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/api/display_source/display_source_session.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/display_source_custom_bindings.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/android/forwarder2/daemon.h View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/android/forwarder2/daemon.cc View 1 6 chunks +8 lines, -7 lines 0 comments Download
M tools/android/forwarder2/device_controller.h View 4 chunks +7 lines, -6 lines 0 comments Download
M tools/android/forwarder2/device_controller.cc View 6 chunks +9 lines, -9 lines 0 comments Download
M tools/android/forwarder2/device_forwarder_main.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M tools/android/forwarder2/device_listener.h View 4 chunks +14 lines, -12 lines 0 comments Download
M tools/android/forwarder2/device_listener.cc View 4 chunks +9 lines, -9 lines 0 comments Download
M tools/android/forwarder2/forwarder.h View 3 chunks +7 lines, -6 lines 0 comments Download
M tools/android/forwarder2/forwarder.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/android/forwarder2/forwarders_manager.h View 2 chunks +6 lines, -5 lines 0 comments Download
M tools/android/forwarder2/forwarders_manager.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M tools/android/forwarder2/host_controller.h View 4 chunks +13 lines, -12 lines 0 comments Download
M tools/android/forwarder2/host_controller.cc View 5 chunks +10 lines, -10 lines 0 comments Download
M tools/android/forwarder2/host_forwarder_main.cc View 7 chunks +13 lines, -13 lines 0 comments Download
M tools/android/forwarder2/self_deleter_helper.h View 5 chunks +8 lines, -6 lines 0 comments Download
M tools/android/md5sum/md5sum.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M tools/battor_agent/battor_agent.h View 2 chunks +3 lines, -3 lines 0 comments Download
M tools/battor_agent/battor_agent.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M tools/battor_agent/battor_agent_bin.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/battor_agent/battor_agent_unittest.cc View 7 chunks +13 lines, -11 lines 0 comments Download
M tools/battor_agent/battor_connection.h View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/battor_agent/battor_connection_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/battor_agent/battor_connection_impl.cc View 6 chunks +9 lines, -7 lines 0 comments Download
M tools/battor_agent/battor_connection_impl_unittest.cc View 6 chunks +8 lines, -6 lines 0 comments Download
M tools/battor_agent/battor_finder.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/clang/plugins/FindBadConstructsConsumer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/cygprofile/cygprofile.h View 3 chunks +5 lines, -5 lines 0 comments Download
M tools/cygprofile/cygprofile.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M tools/cygprofile/cygprofile_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/build_settings.h View 5 chunks +5 lines, -5 lines 0 comments Download
M tools/gn/build_settings.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/builder.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/builder_record.h View 3 chunks +3 lines, -3 lines 0 comments Download
M tools/gn/builder_unittest.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M tools/gn/command_format.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/eclipse_writer.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M tools/gn/exec_process.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M tools/gn/function_toolchain.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/gn/functions.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M tools/gn/functions_unittest.cc View 1 4 chunks +7 lines, -6 lines 0 comments Download
M tools/gn/header_checker.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/import_manager.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M tools/gn/input_conversion.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/gn/input_file_manager.h View 2 chunks +3 lines, -3 lines 0 comments Download
M tools/gn/input_file_manager.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M tools/gn/loader.cc View 2 chunks +2 lines, -1 line 0 comments Download
M tools/gn/loader_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M tools/gn/ninja_binary_target_writer_unittest.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M tools/gn/operators_unittest.cc View 7 chunks +19 lines, -15 lines 0 comments Download
M tools/gn/parse_tree.h View 12 chunks +33 lines, -28 lines 0 comments Download
M tools/gn/parse_tree_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/gn/parser.h View 2 chunks +36 lines, -31 lines 0 comments Download
M tools/gn/parser.cc View 17 chunks +92 lines, -88 lines 0 comments Download
M tools/gn/parser_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M tools/gn/scope.h View 4 chunks +4 lines, -5 lines 0 comments Download
M tools/gn/scope.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/gn/scope_per_file_provider.h View 2 chunks +10 lines, -9 lines 0 comments Download
M tools/gn/scope_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/setup.h View 4 chunks +6 lines, -6 lines 0 comments Download
M tools/gn/setup.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M tools/gn/string_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/string_utils_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/target_generator.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/target_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/gn/template.h View 3 chunks +3 lines, -3 lines 0 comments Download
M tools/gn/template.cc View 2 3 chunks +3 lines, -3 lines 0 comments Download
M tools/gn/test_with_scope.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/test_with_scope.cc View 9 chunks +12 lines, -12 lines 0 comments Download
M tools/gn/toolchain.h View 3 chunks +4 lines, -3 lines 0 comments Download
M tools/gn/toolchain.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/value.h View 4 chunks +5 lines, -4 lines 0 comments Download
M tools/gn/value.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/gn/value_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/visual_studio_writer.cc View 13 chunks +23 lines, -21 lines 0 comments Download
M tools/gn/xml_element_writer.h View 3 chunks +11 lines, -9 lines 0 comments Download
M tools/gn/xml_element_writer.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M tools/imagediff/image_diff.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M tools/ipc_fuzzer/fuzzer/fuzzer.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/ipc_fuzzer/message_replay/replay_process.h View 2 chunks +5 lines, -4 lines 0 comments Download
M tools/json_schema_compiler/cc_generator.py View 9 chunks +17 lines, -16 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/json_schema_compiler/h_generator.py View 5 chunks +6 lines, -6 lines 0 comments Download
M tools/json_schema_compiler/test/additional_properties_unittest.cc View 1 2 3 1 chunk +16 lines, -9 lines 0 comments Download
M tools/json_schema_compiler/test/any_unittest.cc View 1 chunk +12 lines, -12 lines 0 comments Download
M tools/json_schema_compiler/test/arrays_unittest.cc View 1 2 3 15 chunks +32 lines, -29 lines 0 comments Download
M tools/json_schema_compiler/test/callbacks_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/json_schema_compiler/test/choices_unittest.cc View 12 chunks +39 lines, -35 lines 0 comments Download
M tools/json_schema_compiler/test/crossref_unittest.cc View 1 2 3 5 chunks +29 lines, -25 lines 0 comments Download
M tools/json_schema_compiler/test/enums_unittest.cc View 17 chunks +24 lines, -22 lines 0 comments Download
M tools/json_schema_compiler/test/error_generation_unittest.cc View 18 chunks +65 lines, -69 lines 0 comments Download
M tools/json_schema_compiler/test/functions_on_types_unittest.cc View 3 chunks +14 lines, -13 lines 0 comments Download
M tools/json_schema_compiler/test/idl_schemas_unittest.cc View 11 chunks +24 lines, -16 lines 0 comments Download
M tools/json_schema_compiler/test/objects_unittest.cc View 4 chunks +13 lines, -10 lines 0 comments Download
M tools/json_schema_compiler/test/simple_api_unittest.cc View 13 chunks +33 lines, -31 lines 0 comments Download
M tools/json_schema_compiler/test/test_util.h View 2 chunks +21 lines, -17 lines 0 comments Download
M tools/json_schema_compiler/test/test_util.cc View 1 chunk +26 lines, -26 lines 0 comments Download
M tools/json_schema_compiler/util.h View 9 chunks +30 lines, -28 lines 0 comments Download
M tools/json_schema_compiler/util.cc View 3 chunks +11 lines, -10 lines 0 comments Download
M tools/json_schema_compiler/util_cc_helper.py View 1 chunk +1 line, -1 line 0 comments Download
M ui/accessibility/ax_node_data.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
dcheng
+brettw for //tools/gn and //tools/imagediff (which has no direct OWNER) +dmazzoni for //ui +inferno for ...
4 years, 8 months ago (2016-04-06 20:58:05 UTC) #4
nednguyen
toosl/battor/ lgtm
4 years, 8 months ago (2016-04-06 21:04:24 UTC) #5
Devlin
extensions lgtm
4 years, 8 months ago (2016-04-06 21:08:51 UTC) #6
vmpstr
lgtm with optional comments https://codereview.chromium.org/1869503004/diff/1/tools/android/forwarder2/daemon.cc File tools/android/forwarder2/daemon.cc (right): https://codereview.chromium.org/1869503004/diff/1/tools/android/forwarder2/daemon.cc#newcode126 tools/android/forwarder2/daemon.cc:126: return std::unique_ptr<Socket>(); This would probably ...
4 years, 8 months ago (2016-04-06 21:12:29 UTC) #7
michaelbai
+wangxianzhu for tools/android
4 years, 8 months ago (2016-04-06 21:24:50 UTC) #9
dcheng
https://codereview.chromium.org/1869503004/diff/1/tools/android/forwarder2/daemon.cc File tools/android/forwarder2/daemon.cc (right): https://codereview.chromium.org/1869503004/diff/1/tools/android/forwarder2/daemon.cc#newcode126 tools/android/forwarder2/daemon.cc:126: return std::unique_ptr<Socket>(); On 2016/04/06 at 21:12:29, vmpstr wrote: > ...
4 years, 8 months ago (2016-04-06 21:26:33 UTC) #10
vmpstr
https://codereview.chromium.org/1869503004/diff/1/tools/android/forwarder2/daemon.cc File tools/android/forwarder2/daemon.cc (right): https://codereview.chromium.org/1869503004/diff/1/tools/android/forwarder2/daemon.cc#newcode126 tools/android/forwarder2/daemon.cc:126: return std::unique_ptr<Socket>(); On 2016/04/06 21:26:32, dcheng wrote: > On ...
4 years, 8 months ago (2016-04-06 21:28:28 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869503004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869503004/20001
4 years, 8 months ago (2016-04-06 22:36:29 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/117943) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 8 months ago (2016-04-06 22:53:10 UTC) #15
dmazzoni
lgtm
4 years, 8 months ago (2016-04-06 23:04:25 UTC) #16
Xianzhu
tools/android lgtm
4 years, 8 months ago (2016-04-06 23:16:54 UTC) #17
dcheng
https://codereview.chromium.org/1869503004/diff/1/tools/gn/template.cc File tools/gn/template.cc (right): https://codereview.chromium.org/1869503004/diff/1/tools/gn/template.cc#newcode81 tools/gn/template.cc:81: template_scope.SetValue(kInvoker, Value(nullptr, std::unique_ptr<Scope>()), On 2016/04/06 at 21:26:32, dcheng wrote: ...
4 years, 8 months ago (2016-04-07 00:53:05 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869503004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869503004/40001
4 years, 8 months ago (2016-04-07 01:02:44 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-07 03:20:43 UTC) #22
Devlin
missed that I was also for json_schema_compiler. s lgtm with totally optional nits (since none ...
4 years, 8 months ago (2016-04-07 04:15:59 UTC) #23
dcheng
https://codereview.chromium.org/1869503004/diff/40001/tools/json_schema_compiler/test/additional_properties_unittest.cc File tools/json_schema_compiler/test/additional_properties_unittest.cc (right): https://codereview.chromium.org/1869503004/diff/40001/tools/json_schema_compiler/test/additional_properties_unittest.cc#newcode5 tools/json_schema_compiler/test/additional_properties_unittest.cc:5: #include "testing/gtest/include/gtest/gtest.h" On 2016/04/07 at 04:15:59, Devlin wrote: > ...
4 years, 8 months ago (2016-04-07 04:24:03 UTC) #24
Benoit L
On 2016/04/07 04:24:03, dcheng wrote: > https://codereview.chromium.org/1869503004/diff/40001/tools/json_schema_compiler/test/additional_properties_unittest.cc > File tools/json_schema_compiler/test/additional_properties_unittest.cc (right): > > https://codereview.chromium.org/1869503004/diff/40001/tools/json_schema_compiler/test/additional_properties_unittest.cc#newcode5 > ...
4 years, 8 months ago (2016-04-07 08:14:15 UTC) #25
brettw
lgtm
4 years, 8 months ago (2016-04-08 18:07:10 UTC) #26
Martin Barbella
tools/ipc_fuzzer lgtm.
4 years, 8 months ago (2016-04-08 18:19:28 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869503004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869503004/80001
4 years, 8 months ago (2016-04-08 18:33:10 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-08 19:55:56 UTC) #32
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 19:59:27 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a500b69aa06c2bc084a3b1867b9824f4218014de
Cr-Commit-Position: refs/heads/master@{#386168}

Powered by Google App Engine
This is Rietveld 408576698