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

Issue 1483073004: Replace use of .Pass() with crashpad::move(). (Closed)

Created:
5 years ago by danakj
Modified:
5 years ago
Reviewers:
Mark Mentovai, scottmg
CC:
crashpad-dev_chromium.org, piman, Nico
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

Replace use of .Pass() with crashpad::move(). Since C++11 library support isn't available everywhere crashpad is compiled, add our own move() method in the crashpad namespace to replace std::move() for now. Replace uses of .Pass() with this method. R=mark@chromium.org, scottmg@chromium.org BUG=chromium:557422 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/6bebb10829332dee5c7315abafb0a8bf32840c15

Patch Set 1 #

Patch Set 2 : pass: add-move.h #

Patch Set 3 : pass: 80cols #

Patch Set 4 : pass: more80cols-and-fix-move #

Total comments: 7

Patch Set 5 : pass: . #

Patch Set 6 : pass: comments #

Total comments: 6

Patch Set 7 : pass: whitespace #

Patch Set 8 : pass: removeref #

Patch Set 9 : pass: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -198 lines) Patch
M client/crash_report_database_win.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M client/crashpad_client_mac.cc View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M client/settings.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M handler/crash_report_upload_thread.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M handler/handler_main.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M handler/mac/exception_handler_server.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M minidump/minidump_crashpad_info_writer.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M minidump/minidump_crashpad_info_writer_test.cc View 1 2 3 4 7 chunks +12 lines, -11 lines 0 comments Download
M minidump/minidump_exception_writer.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M minidump/minidump_exception_writer_test.cc View 1 2 3 4 6 chunks +7 lines, -6 lines 0 comments Download
M minidump/minidump_file_writer.cc View 1 2 3 4 5 chunks +10 lines, -9 lines 0 comments Download
M minidump/minidump_file_writer_test.cc View 1 2 3 4 11 chunks +18 lines, -17 lines 0 comments Download
M minidump/minidump_handle_writer_test.cc View 1 2 3 4 4 chunks +4 lines, -3 lines 0 comments Download
M minidump/minidump_memory_info_writer_test.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M minidump/minidump_memory_writer.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M minidump/minidump_memory_writer_test.cc View 1 2 3 4 7 chunks +11 lines, -10 lines 0 comments Download
M minidump/minidump_misc_info_writer_test.cc View 1 2 3 4 14 chunks +15 lines, -14 lines 0 comments Download
M minidump/minidump_module_crashpad_info_writer.cc View 1 2 3 4 5 chunks +6 lines, -5 lines 0 comments Download
M minidump/minidump_module_crashpad_info_writer_test.cc View 1 2 3 4 5 chunks +16 lines, -13 lines 0 comments Download
M minidump/minidump_module_writer.cc View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M minidump/minidump_module_writer_test.cc View 1 2 3 4 9 chunks +21 lines, -20 lines 0 comments Download
M minidump/minidump_rva_list_writer_test.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M minidump/minidump_simple_string_dictionary_writer.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M minidump/minidump_simple_string_dictionary_writer_test.cc View 1 2 3 4 5 chunks +8 lines, -7 lines 0 comments Download
M minidump/minidump_string_writer.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M minidump/minidump_system_info_writer_test.cc View 1 2 3 4 8 chunks +8 lines, -7 lines 0 comments Download
M minidump/minidump_thread_writer.cc View 1 2 3 4 4 chunks +6 lines, -5 lines 0 comments Download
M minidump/minidump_thread_writer_test.cc View 1 2 3 4 11 chunks +26 lines, -25 lines 0 comments Download
M snapshot/test/test_process_snapshot.h View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M snapshot/test/test_thread_snapshot.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M test/win/win_child_process.cc View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M tools/crashpad_database_util.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M util/mach/child_port_handshake.h View 1 chunk +1 line, -1 line 0 comments Download
M util/mach/child_port_handshake.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M util/net/http_transport.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M util/net/http_transport_test.cc View 1 2 3 4 5 chunks +5 lines, -4 lines 0 comments Download
A util/stdlib/move.h View 1 2 3 4 5 6 7 8 1 chunk +54 lines, -0 lines 0 comments Download
M util/util.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M util/win/exception_handler_server.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M util/win/process_info.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (1 generated)
danakj
5 years ago (2015-11-30 20:55:52 UTC) #1
scottmg
"trybot": https://gist.github.com/sgraham/48bba94af9aac8b38b0e Need to change mini_chromium too? :(
5 years ago (2015-11-30 21:02:29 UTC) #2
danakj
Oops, my signature on move() was a bit wrong. Fixed, and fixed 80cols issues.
5 years ago (2015-11-30 21:07:10 UTC) #3
danakj
On 2015/11/30 21:02:29, scottmg wrote: > "trybot": https://gist.github.com/sgraham/48bba94af9aac8b38b0e Need to change > mini_chromium too? :( ...
5 years ago (2015-11-30 21:08:26 UTC) #4
danakj
On 2015/11/30 21:08:26, danakj (behind on reviews) wrote: > On 2015/11/30 21:02:29, scottmg wrote: > ...
5 years ago (2015-11-30 21:23:11 UTC) #5
scottmg
On 2015/11/30 21:23:11, danakj (behind on reviews) wrote: > On 2015/11/30 21:08:26, danakj (behind on ...
5 years ago (2015-11-30 21:25:14 UTC) #6
Mark Mentovai
That’s an old mirror of the real one.
5 years ago (2015-11-30 21:26:29 UTC) #7
danakj
On 2015/11/30 21:26:29, Mark Mentovai wrote: > That’s an old mirror of the real one. ...
5 years ago (2015-11-30 21:38:31 UTC) #8
scottmg
On 2015/11/30 21:38:31, danakj (behind on reviews) wrote: > On 2015/11/30 21:26:29, Mark Mentovai wrote: ...
5 years ago (2015-11-30 21:40:41 UTC) #9
scottmg
Do they need to be crashpad::move(), rather than just move()? I guess the idea is ...
5 years ago (2015-11-30 21:45:35 UTC) #10
Mark Mentovai
https://codereview.chromium.org/1483073004/diff/60001/client/crashpad_client_mac.cc File client/crashpad_client_mac.cc (right): https://codereview.chromium.org/1483073004/diff/60001/client/crashpad_client_mac.cc#newcode162 client/crashpad_client_mac.cc:162: crashpad::move(receive_right), The extra crashpad:: qualification when you’re already in ...
5 years ago (2015-11-30 21:47:51 UTC) #11
danakj
On 2015/11/30 21:45:35, scottmg wrote: > Do they need to be crashpad::move(), rather than just ...
5 years ago (2015-11-30 22:06:54 UTC) #12
danakj
PTAL https://codereview.chromium.org/1483073004/diff/60001/util/misc/move.h File util/misc/move.h (right): https://codereview.chromium.org/1483073004/diff/60001/util/misc/move.h#newcode15 util/misc/move.h:15: #ifndef CRASHPAD_UTIL_MISC_MOVE_H_ On 2015/11/30 21:47:51, Mark Mentovai wrote: ...
5 years ago (2015-11-30 22:07:02 UTC) #13
danakj
https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h File util/stdlib/move.h (right): https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h#newcode25 util/stdlib/move.h:25: using remove_reference = std::remove_reference; Technically I could avoid making ...
5 years ago (2015-11-30 22:10:26 UTC) #14
scottmg
https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h File util/stdlib/move.h (right): https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h#newcode25 util/stdlib/move.h:25: using remove_reference = std::remove_reference; FAILED: ninja -t msvc -e ...
5 years ago (2015-11-30 22:10:50 UTC) #15
Mark Mentovai
LGTM. I may experiment with injecting this into std in compat so that we can ...
5 years ago (2015-11-30 22:11:41 UTC) #16
danakj
https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h File util/stdlib/move.h (right): https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h#newcode25 util/stdlib/move.h:25: using remove_reference = std::remove_reference; On 2015/11/30 22:10:50, scottmg wrote: ...
5 years ago (2015-11-30 22:14:45 UTC) #17
danakj
https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h File util/stdlib/move.h (right): https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h#newcode39 util/stdlib/move.h:39: template<typename T> On 2015/11/30 22:11:41, Mark Mentovai wrote: > ...
5 years ago (2015-11-30 22:14:59 UTC) #18
scottmg
lgtm https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h File util/stdlib/move.h (right): https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h#newcode25 util/stdlib/move.h:25: using remove_reference = std::remove_reference; On 2015/11/30 22:14:45, danakj ...
5 years ago (2015-11-30 22:19:55 UTC) #19
danakj
On 2015/11/30 22:19:55, scottmg wrote: > lgtm > > https://codereview.chromium.org/1483073004/diff/100001/util/stdlib/move.h > File util/stdlib/move.h (right): > ...
5 years ago (2015-11-30 22:20:26 UTC) #20
danakj
Committed patchset #9 (id:160001) manually as 6bebb10829332dee5c7315abafb0a8bf32840c15 (presubmit successful).
5 years ago (2015-11-30 22:21:02 UTC) #22
Mark Mentovai
5 years ago (2015-11-30 22:49:36 UTC) #23
Message was sent while issue was closed.
Thanks, Dana.

Powered by Google App Engine
This is Rietveld 408576698