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

Issue 2815913005: Switch to using scoped_ptr with UserData (Closed)

Created:
3 years, 8 months ago by Avi (use Gerrit)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, David Trainor- moved to gerrit, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, Randy Smith (Not in Mondays), nhiroki, cbentzel+watch_chromium.org, net-reviews_chromium.org, kinuko+serviceworker, darin-cc_chromium.org, blink-worker-reviews_chromium.org, loading-reviews_chromium.org, horo+watch_chromium.org, kinuko+watch, tzik, mmenke, zork+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch to using scoped_ptr with UserData BUG=690937 TEST=none Review-Url: https://codereview.chromium.org/2815913005 Cr-Commit-Position: refs/heads/master@{#466896} Committed: https://chromium.googlesource.com/chromium/src/+/1ed4a43703873eced52dae51c62682fef5cfd9b7

Patch Set 1 #

Patch Set 2 : fixes #

Total comments: 6

Patch Set 3 : nico #

Total comments: 4

Patch Set 4 : nico's nits #

Total comments: 2

Patch Set 5 : davidben #

Total comments: 2

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -136 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/settings/downloads_handler_unittest.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M components/data_use_measurement/core/data_use_user_data.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/data_use_measurement/core/data_use_user_data.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M components/domain_reliability/uploader.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/appcache/appcache_host.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/appcache/appcache_host.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M content/browser/appcache/appcache_interceptor.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/appcache/appcache_interceptor.cc View 3 chunks +8 lines, -5 lines 0 comments Download
M content/browser/appcache/appcache_request_handler_unittest.cc View 1 2 3 4 5 20 chunks +40 lines, -58 lines 0 comments Download
M content/browser/background_fetch/background_fetch_test_base.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/blob_storage/chrome_blob_storage_context.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 8 chunks +19 lines, -12 lines 0 comments Download
M content/browser/download/download_request_core.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 5 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/resource_context_impl.cc View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M content/browser/service_worker/foreign_fetch_request_handler.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_response_info.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/ssl/ssl_manager.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/streams/stream_context.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/websockets/websocket_handshake_request_info_impl.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/websockets/websocket_handshake_request_info_impl.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/webui/url_data_manager.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/common/net/url_fetcher.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M google_apis/gaia/gaia_auth_util.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M net/url_request/report_sender.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher.h View 1 chunk +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (22 generated)
Avi (use Gerrit)
Nico: chrome/ Sylvain: components/ Nasko: content/ Roger: google_apis/ David: net/
3 years, 8 months ago (2017-04-14 14:35:44 UTC) #12
Nico
Thanks for all the CLs pointing out how wonky our ownership is everywhere ;-) https://codereview.chromium.org/2815913005/diff/20001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc ...
3 years, 8 months ago (2017-04-14 15:46:58 UTC) #13
Avi (use Gerrit)
https://codereview.chromium.org/2815913005/diff/20001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc File chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc (right): https://codereview.chromium.org/2815913005/diff/20001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc#newcode519 chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc:519: browser_context, base::WrapUnique(download_manager_)); On 2017/04/14 15:46:58, Nico wrote: > That ...
3 years, 8 months ago (2017-04-14 18:17:51 UTC) #16
Nico
chrome/ lgtm, thanks https://codereview.chromium.org/2815913005/diff/40001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc File chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc (right): https://codereview.chromium.org/2815913005/diff/40001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc#newcode530 chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc:530: content::MockDownloadManager* download_manager_; // owned by browser ...
3 years, 8 months ago (2017-04-14 18:53:20 UTC) #17
Avi (use Gerrit)
https://codereview.chromium.org/2815913005/diff/40001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc File chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc (right): https://codereview.chromium.org/2815913005/diff/40001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc#newcode530 chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc:530: content::MockDownloadManager* download_manager_; // owned by browser context On 2017/04/14 ...
3 years, 8 months ago (2017-04-14 18:59:39 UTC) #19
davidben
net lgtm https://codereview.chromium.org/2815913005/diff/60001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/2815913005/diff/60001/net/url_request/url_fetcher_core.cc#newcode12 net/url_request/url_fetcher_core.cc:12: #include "base/memory/ptr_util.h" Stray change?
3 years, 8 months ago (2017-04-14 19:38:24 UTC) #20
davidben
net lgtm https://codereview.chromium.org/2815913005/diff/60001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/2815913005/diff/60001/net/url_request/url_fetcher_core.cc#newcode12 net/url_request/url_fetcher_core.cc:12: #include "base/memory/ptr_util.h" Stray change?
3 years, 8 months ago (2017-04-14 19:38:24 UTC) #21
Avi (use Gerrit)
https://codereview.chromium.org/2815913005/diff/60001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/2815913005/diff/60001/net/url_request/url_fetcher_core.cc#newcode12 net/url_request/url_fetcher_core.cc:12: #include "base/memory/ptr_util.h" On 2017/04/14 19:38:24, davidben wrote: > Stray ...
3 years, 8 months ago (2017-04-14 19:49:20 UTC) #22
sdefresne
lgtm
3 years, 8 months ago (2017-04-18 10:39:41 UTC) #27
Roger Tawa OOO till Jul 10th
google_apis lgtm
3 years, 8 months ago (2017-04-18 13:44:19 UTC) #28
nasko
content/ LGTM https://codereview.chromium.org/2815913005/diff/80001/content/browser/loader/resource_request_info_impl.cc File content/browser/loader/resource_request_info_impl.cc (right): https://codereview.chromium.org/2815913005/diff/80001/content/browser/loader/resource_request_info_impl.cc#newcode310 content/browser/loader/resource_request_info_impl.cc:310: request->SetUserData(NULL, base::WrapUnique(this)); nit: nullptr while at it?
3 years, 8 months ago (2017-04-19 17:56:55 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2815913005/100001
3 years, 8 months ago (2017-04-25 03:50:23 UTC) #32
Avi (use Gerrit)
https://codereview.chromium.org/2815913005/diff/80001/content/browser/loader/resource_request_info_impl.cc File content/browser/loader/resource_request_info_impl.cc (right): https://codereview.chromium.org/2815913005/diff/80001/content/browser/loader/resource_request_info_impl.cc#newcode310 content/browser/loader/resource_request_info_impl.cc:310: request->SetUserData(NULL, base::WrapUnique(this)); On 2017/04/19 17:56:55, nasko wrote: > nit: ...
3 years, 8 months ago (2017-04-25 03:50:28 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 05:39:52 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/1ed4a43703873eced52dae51c626...

Powered by Google App Engine
This is Rietveld 408576698