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

Issue 1295523006: Using scoped_ptr for URLRequestJobFactoryImpl::SetProtocolHandler (Closed)

Created:
5 years, 4 months ago by svaldez
Modified:
5 years, 4 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, tzik, yzshen+watch_chromium.org, kinuko+watch, ben+mojo_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, lcwu+watch_chromium.org, viettrungluu+watch_chromium.org, jam, abarth-chromium, darin-cc_chromium.org, jkarlin+watch_chromium.org, chromium-apps-reviews_chromium.org, android-webview-reviews_chromium.org, blink-worker-reviews_chromium.org, mlamouri+watch-content_chromium.org, chromoting-reviews_chromium.org, jsbell+serviceworker_chromium.org, nhiroki, gunsch+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org, zork+watch_chromium.org, michaeln, serviceworker-reviews, Aaron Boodman, kinuko+serviceworker, Paweł Hajdan Jr., horo+watch_chromium.org, darin (slow to review), kinuko+fileapi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Using scoped_ptr for URLRequestJobFactoryImpl::SetProtocolHandler Adding scoped_ptr to call in order to take ownership of handler. BUG=517161 Committed: https://crrev.com/5d58c9eb2baa203be1b84ac88cde82c59d72f143 Cr-Commit-Position: refs/heads/master@{#345185}

Patch Set 1 #

Patch Set 2 : Cleaning up parens #

Patch Set 3 : Rebase #

Total comments: 21

Patch Set 4 : Moving scoped_ptr creation #

Patch Set 5 : Missed include for android #

Patch Set 6 : Rebase #

Total comments: 8

Patch Set 7 : Moving more plumbing for scoped_ptr #

Patch Set 8 : Fix broken calls #

Patch Set 9 : Fix passing of scope. #

Total comments: 2

Patch Set 10 : Removing un-modified file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -165 lines) Patch
M android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 4 5 6 1 chunk +11 lines, -9 lines 0 comments Download
M android_webview/browser/net/aw_url_request_job_factory.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/net/aw_url_request_job_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_resource_protocols.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_resource_protocols.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 chunks +14 lines, -12 lines 0 comments Download
M chromecast/browser/url_request_context_factory.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/android/content_protocol_handler_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/appcache/appcache_storage_impl_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/appcache/appcache_update_job_unittest.cc View 12 chunks +26 lines, -13 lines 0 comments Download
M content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/fileapi/blob_url_request_job_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_unittest.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 2 3 2 chunks +7 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/streams/stream_url_request_job_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/webui/url_data_manager_backend.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/webui/url_data_manager_backend.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/webui/url_data_manager_backend_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M content/public/browser/android/content_protocol_handler.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/test/mock_blob_url_request_context.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/extension_protocols.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/extension_protocols.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M extensions/shell/browser/shell_content_browser_client.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ios/crnet/crnet_environment.mm View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M ios/net/protocol_handler_util_unittest.mm View 1 chunk +4 lines, -2 lines 0 comments Download
M ios/web/net/request_tracker_impl_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/web/shell/shell_url_request_context_getter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ios/web/webui/url_data_manager_ios_backend.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ios/web/webui/url_data_manager_ios_backend.cc View 1 2 3 1 chunk +4 lines, -5 lines 0 comments Download
M mojo/services/network/url_loader_impl_apptest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M net/url_request/url_request_ftp_job_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/url_request_job_factory_impl.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_job_factory_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_job_factory_impl_unittest.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M net/url_request/url_request_simple_job_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_test_job.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/url_request_test_job.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 3 chunks +9 lines, -5 lines 0 comments Download
M remoting/host/token_validator_factory_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (10 generated)
svaldez
5 years, 4 months ago (2015-08-18 17:18:54 UTC) #2
davidben
Thanks! https://codereview.chromium.org/1295523006/diff/40001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/1295523006/diff/40001/chrome/browser/profiles/profile_io_data.cc#newcode1178 chrome/browser/profiles/profile_io_data.cc:1178: make_scoped_ptr(extensions::CreateExtensionProtocolHandler( This would probably be better having CreateExtensionProtocolHandler ...
5 years, 4 months ago (2015-08-18 20:40:37 UTC) #3
svaldez
https://codereview.chromium.org/1295523006/diff/40001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/1295523006/diff/40001/chrome/browser/profiles/profile_io_data.cc#newcode1178 chrome/browser/profiles/profile_io_data.cc:1178: make_scoped_ptr(extensions::CreateExtensionProtocolHandler( On 2015/08/18 20:40:37, David Benjamin (slow) wrote: > ...
5 years, 4 months ago (2015-08-18 22:12:44 UTC) #4
davidben
Did you forget to upload the new version? :-)
5 years, 4 months ago (2015-08-18 22:19:37 UTC) #5
svaldez
5 years, 4 months ago (2015-08-18 22:32:08 UTC) #6
davidben
Sorry, basically all of the comments below were ones I should have noticed the first ...
5 years, 4 months ago (2015-08-19 19:53:22 UTC) #7
svaldez
5 years, 4 months ago (2015-08-19 21:15:35 UTC) #8
svaldez
Hi, I'm currently doing a re-write of the SetProtocolHandler to used scoped_ptr instead of the ...
5 years, 4 months ago (2015-08-20 14:17:21 UTC) #11
lcwu1
chromecast/ lgtm
5 years, 4 months ago (2015-08-20 15:50:20 UTC) #12
sky
LGTM
5 years, 4 months ago (2015-08-20 20:08:40 UTC) #13
stuartmorgan
ios lgtm
5 years, 4 months ago (2015-08-20 21:02:51 UTC) #14
asargent_no_longer_on_chrome
extensions files lgtm https://codereview.chromium.org/1295523006/diff/150001/chrome/browser/extensions/extension_protocols_unittest.cc File chrome/browser/extensions/extension_protocols_unittest.cc (right): https://codereview.chromium.org/1295523006/diff/150001/chrome/browser/extensions/extension_protocols_unittest.cc#newcode123 chrome/browser/extensions/extension_protocols_unittest.cc:123: is_incognito, extension_info_map_.get())); Looks like this is ...
5 years, 4 months ago (2015-08-20 21:57:01 UTC) #15
svaldez
https://codereview.chromium.org/1295523006/diff/150001/chrome/browser/extensions/extension_protocols_unittest.cc File chrome/browser/extensions/extension_protocols_unittest.cc (right): https://codereview.chromium.org/1295523006/diff/150001/chrome/browser/extensions/extension_protocols_unittest.cc#newcode123 chrome/browser/extensions/extension_protocols_unittest.cc:123: is_incognito, extension_info_map_.get())); On 2015/08/20 21:57:01, Antony Sargent wrote: > ...
5 years, 4 months ago (2015-08-20 21:59:12 UTC) #16
sgurun-gerrit only
lgtm
5 years, 4 months ago (2015-08-20 22:18:55 UTC) #17
svaldez
Hi, I'm currently doing a re-write of the SetProtocolHandler to used scoped_ptr instead of the ...
5 years, 4 months ago (2015-08-20 22:23:41 UTC) #20
jeremyim
data_reduction_proxy lgtm
5 years, 4 months ago (2015-08-20 22:31:12 UTC) #21
svaldez
Hi, I'm currently doing a re-write of the SetProtocolHandler to used scoped_ptr instead of the ...
5 years, 4 months ago (2015-08-21 13:45:41 UTC) #24
Jamie
remoting/ LGTM
5 years, 4 months ago (2015-08-24 20:45:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1295523006/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1295523006/170001
5 years, 4 months ago (2015-08-24 20:47:26 UTC) #28
commit-bot: I haz the power
Committed patchset #10 (id:170001)
5 years, 4 months ago (2015-08-24 21:36:27 UTC) #29
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/5d58c9eb2baa203be1b84ac88cde82c59d72f143 Cr-Commit-Position: refs/heads/master@{#345185}
5 years, 4 months ago (2015-08-24 21:39:46 UTC) #30
stgao
FYI: this CL seems to cause the memory test in https://build.chromium.org/p/chromium.memory.fyi/builders/Webkit%20Linux%20%28valgrind%20layout%29/builds/36230 https://findit-for-me.appspot.com/build-failure?url=https://build.chromium.org/p/chromium.memory.fyi/builders/Webkit%20Linux%20(valgrind%20layout)/builds/36230
5 years, 4 months ago (2015-08-25 05:17:48 UTC) #32
svaldez
5 years, 4 months ago (2015-08-25 15:02:06 UTC) #33
Message was sent while issue was closed.
On 2015/08/25 05:17:48, Shuotao wrote:
> FYI: this CL seems to cause the memory test in
>
https://build.chromium.org/p/chromium.memory.fyi/builders/Webkit%20Linux%20%2...
> 
>
https://findit-for-me.appspot.com/build-failure?url=https://build.chromium.or...

It looks like this is a result of the type signature changing and the
suppression from crbug.com/380575 no longer applying:

https://code.google.com/p/chromium/codesearch#chromium/src/tools/valgrind/mem...

Powered by Google App Engine
This is Rietveld 408576698