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

Issue 780713002: Fix remaining WeakPtrFactory ordering problems (Closed)

Created:
6 years ago by dmichael (off chromium)
Modified:
6 years ago
Reviewers:
Fady Samuel, Nico, scottmg
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, ben+mojo_chromium.org, jsbell+serviceworker_chromium.org, tzik, jam, abarth-chromium, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, nhiroki, feature-media-reviews_chromium.org, piman+watch_chromium.org, darin (slow to review), michaeln, serviceworker-reviews, Aaron Boodman, kinuko+serviceworker, horo+watch_chromium.org, cc-bugs_chromium.org, scheduler-bugs_chromium.org, anujsharma
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix remaining WeakPtrFactory ordering problems in preparation for turning on the check. WeakPtrFactory members should always be last so that they invalidate WeakPtrs prior to other destructors running. These are mostly trivial/mechanical ones. (We'll also need https://codereview.chromium.org/795003003/, which I split out) BUG=303818 TBR=rockot,vitalybuka,cbentzel,shess,dmazzoni,stanisc,sky,tim,mathp,benjhayden,kinuko,scottmg,sergeyu,zork,ddorwin Committed: https://crrev.com/23a804335e8955cac7825039ce3c40a8a23fc436 Cr-Commit-Position: refs/heads/master@{#308137}

Patch Set 1 #

Patch Set 2 : more fixes #

Patch Set 3 : merge #

Patch Set 4 : Remove flag change, merge #

Total comments: 3

Patch Set 5 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -75 lines) Patch
M chrome/browser/extensions/extension_resource_protocols.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/local_discovery/service_discovery_client_mdns.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prerender/prerender_local_predictor.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_local_predictor.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_extension_apitest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/sessions/session_data_type_controller_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/signin/core/browser/signin_manager.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/signin/core/browser/signin_manager.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/suggestions/image_manager.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync_driver/device_info_data_type_controller_unittest.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_browsertest.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/fileapi/file_system_quota_client_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/fileapi/file_system_url_request_job_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/fileapi/obfuscated_file_util_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/gamepad/gamepad_provider_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/streams/stream_url_request_job.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/streams/stream_url_request_job.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/remote_media_stream_impl.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/media/remote_media_stream_impl.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/pepper/plugin_object.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/plugin_object.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M device/hid/hid_service_linux.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/declarative/rules_registry.h View 2 chunks +2 lines, -4 lines 0 comments Download
M extensions/browser/api/hid/hid_device_manager.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M extensions/browser/api/hid/hid_device_manager.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/browser/api/serial/serial_connection.h View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/serial/serial_connection.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/cast/test/utility/udp_proxy.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
dmichael (off chromium)
If it lgty, I'll TBR some OWNERS
6 years ago (2014-12-11 20:33:27 UTC) #2
Nico
What about https://code.google.com/p/chromium/codesearch#chromium/src/base/cancelable_callback.h&l=118 ?
6 years ago (2014-12-11 23:58:45 UTC) #3
Nico
this cl lgtm https://codereview.chromium.org/780713002/diff/60001/content/renderer/media/remote_media_stream_impl.cc File content/renderer/media/remote_media_stream_impl.cc (right): https://codereview.chromium.org/780713002/diff/60001/content/renderer/media/remote_media_stream_impl.cc#newcode356 content/renderer/media/remote_media_stream_impl.cc:356: observer_ = new RemoteMediaStreamImpl::Observer( heh :-) ...
6 years ago (2014-12-12 00:03:38 UTC) #4
dmichael (off chromium)
CancelableCallback is probably getting missed because it's a template. I'll take a look to see ...
6 years ago (2014-12-12 16:57:03 UTC) #5
dmichael (off chromium)
fsamuel: Please see Nico's comment here: https://codereview.chromium.org/780713002/diff/60001/extensions/browser/api/declarative/rules_registry.h#oldcode264 OWNERS TBRs: rockot: *extensions* vitalybuka: chrome/browser/local_discovery/service_discovery_client_mdns.cc cbentzel: chrome/browser/prerender ...
6 years ago (2014-12-12 17:52:57 UTC) #7
scottmg
lgtm
6 years ago (2014-12-12 18:00:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/780713002/80001
6 years ago (2014-12-12 18:03:17 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years ago (2014-12-12 19:02:09 UTC) #12
commit-bot: I haz the power
6 years ago (2014-12-12 19:03:00 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/23a804335e8955cac7825039ce3c40a8a23fc436
Cr-Commit-Position: refs/heads/master@{#308137}

Powered by Google App Engine
This is Rietveld 408576698