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

Issue 2763963003: chromeos: Simplify D-Bus proxy resolution service code. (Closed)

Created:
3 years, 9 months ago by Daniel Erat
Modified:
3 years, 9 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, hashimoto+watch_chromium.org, satorux1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Simplify D-Bus proxy resolution service code. Try to simplify ProxyResolutionServiceProvider's implementation in preparation for future changes. Specifically, reduce the use of raw pointers and bind fewer parameters into callbacks. BUG=446115, 703217 TEST=list_proxies works both with a manual proxy config and a trivial .pac file that requires async resolution Review-Url: https://codereview.chromium.org/2763963003 Cr-Commit-Position: refs/heads/master@{#458902} Committed: https://chromium.googlesource.com/chromium/src/+/173bb6fcd2e5543829acbe70ae356ceba4922c6f

Patch Set 1 #

Total comments: 6

Patch Set 2 : put Request in unique_ptr #

Patch Set 3 : make Request private #

Total comments: 7

Patch Set 4 : apply feedback: un-inline ProxyResolverImpl and rename method to ResolveProxyOnNetworkThread #

Total comments: 1

Patch Set 5 : fix crash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -145 lines) Patch
M chromeos/dbus/services/proxy_resolution_service_provider.cc View 1 2 3 4 5 chunks +148 lines, -145 lines 0 comments Download

Messages

Total messages: 31 (22 generated)
Daniel Erat
sorry, feature creep definitely started to set in here. i think there's at least one ...
3 years, 9 months ago (2017-03-22 00:54:00 UTC) #4
satorux1
https://codereview.chromium.org/2763963003/diff/1/chromeos/dbus/services/proxy_resolution_service_provider.cc File chromeos/dbus/services/proxy_resolution_service_provider.cc (right): https://codereview.chromium.org/2763963003/diff/1/chromeos/dbus/services/proxy_resolution_service_provider.cc#newcode33 chromeos/dbus/services/proxy_resolution_service_provider.cc:33: // synchronously, it won't be, and we don't want ...
3 years, 9 months ago (2017-03-22 04:04:02 UTC) #8
Daniel Erat
you might want to hold off on reviewing this until i finish wading through unreadable ...
3 years, 9 months ago (2017-03-22 05:07:23 UTC) #9
Daniel Erat
i think that this is ready for review now. thanks! https://codereview.chromium.org/2763963003/diff/40001/chromeos/dbus/services/proxy_resolution_service_provider.cc File chromeos/dbus/services/proxy_resolution_service_provider.cc (left): https://codereview.chromium.org/2763963003/diff/40001/chromeos/dbus/services/proxy_resolution_service_provider.cc#oldcode29 ...
3 years, 9 months ago (2017-03-22 14:43:44 UTC) #10
James Cook
LGTM with nits. This does seem cleaner. https://codereview.chromium.org/2763963003/diff/40001/chromeos/dbus/services/proxy_resolution_service_provider.cc File chromeos/dbus/services/proxy_resolution_service_provider.cc (right): https://codereview.chromium.org/2763963003/diff/40001/chromeos/dbus/services/proxy_resolution_service_provider.cc#newcode38 chromeos/dbus/services/proxy_resolution_service_provider.cc:38: void ResolveProxy( ...
3 years, 9 months ago (2017-03-22 19:53:20 UTC) #16
Daniel Erat
i also noticed that the test coverage for this code is quite poor (e.g. the ...
3 years, 9 months ago (2017-03-22 20:11:18 UTC) #17
Daniel Erat
https://codereview.chromium.org/2763963003/diff/60001/chromeos/dbus/services/proxy_resolution_service_provider.cc File chromeos/dbus/services/proxy_resolution_service_provider.cc (right): https://codereview.chromium.org/2763963003/diff/60001/chromeos/dbus/services/proxy_resolution_service_provider.cc#newcode124 chromeos/dbus/services/proxy_resolution_service_provider.cc:124: request->context_getter->GetNetworkTaskRunner()->PostTask( whoops, introduced a bug here (dereferencing |request| and ...
3 years, 9 months ago (2017-03-22 21:35:59 UTC) #22
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/2763963003/80001
3 years, 9 months ago (2017-03-22 21:54:14 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 22:37:50 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/173bb6fcd2e5543829acbe70ae35...

Powered by Google App Engine
This is Rietveld 408576698