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

Issue 6730021: crash-reporter: Create a list_proxies command (Closed)

Created:
9 years, 9 months ago by Michael Krebs
Modified:
9 years, 3 months ago
Reviewers:
kmixter1
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

crash-reporter: Create a list_proxies command Create a list_proxies command to be used by crash_sender to determine the correct proxy for a URL. This uses D-Bus to get them from either the browser or the session manager. BUG=chromium-os:6828 TEST=Ran list_proxies command manually to test response for various URLs: "http://...", "https://...", empty/NULL, and invalid (eg. just "blah.com"). Also did this for the various proxy settings in the browser: direct, manual proxy configuration, and automatic proxy configuration. Ran list_proxies command using invalid D-Bus method name for proxy_resolver.StartMonitoring() to make sure timeout works. Ran a modified crash_sender manually to make sure it passed the appropriate "--proxy" arguments correctly. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=58451b5

Patch Set 1 #

Total comments: 28

Patch Set 2 : Commit most of the changes kmixter requested in the code review #

Patch Set 3 : Fix a compile error. #

Total comments: 14

Patch Set 4 : Fix some issues per the codereview. #

Total comments: 14

Patch Set 5 : Fix remaining issues per the codereview (maybe?) #

Total comments: 2

Patch Set 6 : Reorder command-line flags per codereview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -4 lines) Patch
M Makefile View 1 2 3 4 4 chunks +13 lines, -4 lines 0 comments Download
A list_proxies.cc View 1 2 3 4 5 1 chunk +229 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Michael Krebs
Here's the initial CL for the get_proxies program.
9 years, 9 months ago (2011-03-24 04:34:35 UTC) #1
kmixter1
Some comments on first pass. You'll want to add a few unit tests - string ...
9 years, 9 months ago (2011-03-24 17:24:34 UTC) #2
Michael Krebs
I'll upload the changes soon. http://codereview.chromium.org/6730021/diff/1/Makefile File Makefile (right): http://codereview.chromium.org/6730021/diff/1/Makefile#newcode6 Makefile:6: GET_PROXIES = get_proxies On ...
9 years, 8 months ago (2011-04-05 01:12:03 UTC) #3
kmixter1
http://codereview.chromium.org/6730021/diff/7001/get_proxies.cc File get_proxies.cc (right): http://codereview.chromium.org/6730021/diff/7001/get_proxies.cc#newcode41 get_proxies.cc:41: const char kLibCrosServiceInterface[] = "org.chromium.LibCrosServiceInterface"; Sort these if there ...
9 years, 8 months ago (2011-04-06 04:28:53 UTC) #4
Michael Krebs
PTAL. And, do you have any suggestions for some tests I should write? http://codereview.chromium.org/6730021/diff/7001/get_proxies.cc File ...
9 years, 8 months ago (2011-04-12 00:53:38 UTC) #5
kmixter1
Mostly nits. A unit test is probably in order for ParseProxyString though most of this ...
9 years, 8 months ago (2011-04-12 01:17:41 UTC) #6
kmixter1
Also, include a TEST= test for how you test that the timeout works.
9 years, 8 months ago (2011-04-12 01:18:11 UTC) #7
Michael Krebs
Added to "TEST=". PTAL. http://codereview.chromium.org/6730021/diff/7001/get_proxies.cc File get_proxies.cc (right): http://codereview.chromium.org/6730021/diff/7001/get_proxies.cc#newcode41 get_proxies.cc:41: const char kLibCrosServiceInterface[] = "org.chromium.LibCrosServiceInterface"; ...
9 years, 8 months ago (2011-04-13 02:40:24 UTC) #8
Michael Krebs
PTAL. The only open question for me/you is about the class's comment. http://codereview.chromium.org/6730021/diff/10001/get_proxies.cc File get_proxies.cc ...
9 years, 8 months ago (2011-04-14 03:39:15 UTC) #9
kmixter1
LGTM However - have you tried an end to end test that a crash dump ...
9 years, 8 months ago (2011-04-14 18:26:11 UTC) #10
Michael Krebs
An end-to-end test of crash_sender does work, both with and without a proxy. http://codereview.chromium.org/6730021/diff/15001/list_proxies.cc File ...
9 years, 8 months ago (2011-04-15 23:42:58 UTC) #11
kmixter1
9 years, 8 months ago (2011-04-16 00:19:22 UTC) #12
ship it...

On Fri, Apr 15, 2011 at 4:42 PM,  <mkrebs@chromium.org> wrote:
> An end-to-end test of crash_sender does work, both with and without a proxy.
>
>
>
> http://codereview.chromium.org/6730021/diff/15001/list_proxies.cc
> File list_proxies.cc (right):
>
> http://codereview.chromium.org/6730021/diff/15001/list_proxies.cc#newcode24
> list_proxies.cc:24: DEFINE_int32(timeout, 5, "Set timeout for browser
> resolving proxies");
> On 2011/04/14 18:26:11, kmixter1 wrote:
>>
>> nit: abc order for params?
>
> Done.
>
> http://codereview.chromium.org/6730021/
>

Powered by Google App Engine
This is Rietveld 408576698