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

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed)

Created:
4 years, 9 months ago by dcheng
Modified:
4 years, 9 months ago
Reviewers:
brettw, mmenke, Will Harris
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, gavinp+disk_chromium.org, gavinp+memory_chromium.org, gcasto+watchlist_chromium.org, grt+watch_chromium.org, jam, mcasas+watch_chromium.org, mkwst+watchlist-passwords_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mmenke, ortuno+watch_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, rickyz+watch_chromium.org, scheib+watch_chromium.org, tfarina, Lei Zhang, tommycli, toyoshim+midi_chromium.org, vabr+watchlistpasswordmanager_chromium.org, viettrungluu+watch_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, yzshen+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 Pass()→std::move() on Windows Also cleaned up a few stragglers from grepping the source: it's unclear if these are just building with weird defines, don't build at all, only build on obscure platforms, or something else… either way, Pass() itself will be removed shortly after this. BUG=557422 Committed: https://crrev.com/70c494273fa71d922405cba4dc39f5457652a2db Cr-Commit-Position: refs/heads/master@{#378872}

Patch Set 1 #

Patch Set 2 : Header whitespace + presubmit warning #

Total comments: 1

Patch Set 3 : . #

Total comments: 6

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -279 lines) Patch
M base/files/file_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/memory/scoped_ptr_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/move.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/process/kill_win.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M base/process/process_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/synchronization/waitable_event_win.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M base/win/scoped_handle_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/component_updater/caps_installer_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/messaging/native_process_launcher_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/install_verification/win/module_list.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media_galleries/win/mtp_device_delegate_impl_win_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_win.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/chrome_browser_policy_connector.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.cc View 7 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/printing/print_job.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer_win.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer_win_unittest.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer_win.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/platform_state_store.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/platform_state_store_win_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/pdf/pdf_unsupported_feature.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/elevation_icon_setter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_window_property_manager_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 2 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/taskbar_decorator_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/status_icons/status_icon_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/status_icons/status_tray_state_changer_interactive_uitest_win.cc View 1 5 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/status_icons/status_tray_win.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/status_icons/status_tray_win_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_watcher/chrome_watcher_main.cc View 4 chunks +5 lines, -3 lines 0 comments Download
M chrome/installer/test/alternate_version_generator.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/browser_distribution.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/installer/util/chromium_binaries_distribution.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/installer/util/firewall_manager_win.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution_dummy.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/installer/util/google_update_settings.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/cdd_conversion_win.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/utility/printing_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/browser_watcher/exit_code_watcher_win.cc View 2 chunks +3 lines, -1 line 0 comments Download
M components/browser_watcher/exit_code_watcher_win_unittest.cc View 4 chunks +5 lines, -3 lines 0 comments Download
M components/browser_watcher/window_hang_monitor_win.cc View 2 chunks +3 lines, -1 line 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/common/nacl_debug_exception_handler_win.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_helper_win_64.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M components/policy/core/browser/browser_policy_connector_ios.mm View 1 3 chunks +6 lines, -4 lines 0 comments Download
M components/policy/core/common/policy_loader_ios.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/policy_loader_ios_unittest.mm View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/policy/core/common/policy_loader_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/policy_loader_win_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M components/policy/core/common/preg_parser_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/policy/core/common/preg_parser_win_unittest.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M components/policy/core/common/registry_dict_win.cc View 12 chunks +14 lines, -12 lines 0 comments Download
M components/policy/core/common/registry_dict_win_unittest.cc View 13 chunks +44 lines, -49 lines 0 comments Download
M content/browser/gpu/gpu_internals_ui.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/vr/vr_device_manager_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/common/font_list_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/sandbox_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/npapi/webplugin_delegate_proxy.cc View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_low_energy_win.cc View 8 chunks +12 lines, -12 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_win_unittest.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_socket_win.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M device/hid/hid_connection_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M device/hid/hid_service_win.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M media/capture/video/win/video_capture_device_factory_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/capture/video/win/video_capture_device_mf_win.cc View 2 chunks +3 lines, -1 line 0 comments Download
M media/capture/video/win/video_capture_device_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/cdm/ppapi/external_clear_key/cdm_video_decoder.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/midi/midi_manager_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/edk/test/test_utils_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/file_stream_context_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/base/network_interfaces_win.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M net/disk_cache/blockfile/file_win.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M net/dns/dns_config_service_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_config_service_win_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/tcp_socket_win.cc View 2 chunks +3 lines, -1 line 0 comments Download
M net/ssl/ssl_platform_key_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M printing/backend/win_helper.cc View 6 chunks +13 lines, -13 lines 0 comments Download
M printing/emf_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/win/src/broker_services.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M sandbox/win/src/job.cc View 2 chunks +2 lines, -1 line 0 comments Download
M sandbox/win/src/restricted_token.cc View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/win/src/target_process.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M ui/base/ime/chromeos/component_extension_ime_manager_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M ui/gfx/icon_util_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/corewm/cursor_height_provider_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M win8/metro_driver/ime/text_service.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
dcheng
+brettw, mind stamping this? After this, I think Pass() is pretty much gone (other than ...
4 years, 9 months ago (2016-03-02 01:59:58 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752233002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752233002/40001
4 years, 9 months ago (2016-03-02 02:04:23 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-02 04:01:40 UTC) #10
Will Harris
//content/common/sandbox_win.cc lgtm
4 years, 9 months ago (2016-03-02 18:34:46 UTC) #11
brettw
LGTM with some fixes. I'm basing the comments below on the parameter passed to std::move ...
4 years, 9 months ago (2016-03-02 19:09:08 UTC) #12
mmenke
https://codereview.chromium.org/1752233002/diff/40001/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc File chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc (right): https://codereview.chromium.org/1752233002/diff/40001/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc#newcode175 chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc:175: scoped_ptr<NOTIFYITEM> rv(std::move(notify_item_)); On 2016/03/02 19:09:08, brettw wrote: > This ...
4 years, 9 months ago (2016-03-02 19:13:25 UTC) #14
brettw
In that code review, it was written "The standard guarantees that a move-from std::unique_ptr will ...
4 years, 9 months ago (2016-03-02 19:20:42 UTC) #15
dcheng
https://codereview.chromium.org/1752233002/diff/40001/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc File chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc (right): https://codereview.chromium.org/1752233002/diff/40001/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc#newcode175 chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc:175: scoped_ptr<NOTIFYITEM> rv(std::move(notify_item_)); On 2016/03/02 at 19:13:25, mmenke wrote: > ...
4 years, 9 months ago (2016-03-02 19:38:32 UTC) #16
brettw
Ah, so the "undefined" thing is really for the implementer of the move constructor (which ...
4 years, 9 months ago (2016-03-02 20:08:56 UTC) #17
dcheng
On 2016/03/02 at 20:08:56, brettw wrote: > Ah, so the "undefined" thing is really for ...
4 years, 9 months ago (2016-03-02 21:06:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752233002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752233002/60001
4 years, 9 months ago (2016-03-02 21:09:40 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-02 23:20:45 UTC) #22
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 23:22:00 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/70c494273fa71d922405cba4dc39f5457652a2db
Cr-Commit-Position: refs/heads/master@{#378872}

Powered by Google App Engine
This is Rietveld 408576698