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

Issue 2647323010: [Chromecast] Add proxy server support to chromecast (Closed)

Created:
3 years, 11 months ago by almasrymina
Modified:
3 years, 10 months ago
CC:
chromium-reviews, alokp+watch_chromium.org, lcwu+watch_chromium.org, cbentzel+watch_chromium.org, halliwell+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Add proxy server support to chromecast Proxy server support can be useful for testing purposes. This enables cast_shell to support proxies via the "proxy-server" and "proxy-bypass-list" options stored in pref_service. These options behave exactly as chrome's --proxy-server and --proxy-bypass-list. Coming in another CL is a setup API that allows updating these proxy settings. BUG= internal b/34689274 TEST= manual testing with local proxy server Change-Id: I1284afe626ccfdcafd07cd891b38662fbd46a7a3 Review-Url: https://codereview.chromium.org/2647323010 Cr-Commit-Position: refs/heads/master@{#448896} Committed: https://chromium.googlesource.com/chromium/src/+/dfb5b36388a651bf0651f6c564563911fc927c7f

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 3

Patch Set 3 : Address comments. #

Patch Set 4 : Fixing target ref #

Patch Set 5 : Add PrefProxyConfigTracker #

Patch Set 6 : Update connectivity checker to make it compile on desktop #

Total comments: 8

Patch Set 7 : Addressing comments. #

Patch Set 8 : Update #

Patch Set 9 : Changing for internal changes #

Patch Set 10 : Update code to fix internal unittests failing #

Patch Set 11 : Fix target ref. #

Patch Set 12 : Fix target ref #

Patch Set 13 : Fix unittest failure #

Total comments: 8

Patch Set 14 : Address comments #

Patch Set 15 : fix deps #

Total comments: 10

Patch Set 16 : Address cleanup comments #

Patch Set 17 : Fixing test break. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -26 lines) Patch
M chromecast/browser/BUILD.gn View 1 2 3 4 5 8 9 10 11 14 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/cast_browser_main_parts.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -1 line 0 comments Download
M chromecast/browser/url_request_context_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -0 lines 0 comments Download
M chromecast/browser/url_request_context_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +14 lines, -6 lines 0 comments Download
M chromecast/net/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/net/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/net/connectivity_checker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -1 line 0 comments Download
M chromecast/net/connectivity_checker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -2 lines 0 comments Download
M chromecast/net/connectivity_checker_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +5 lines, -3 lines 0 comments Download
M chromecast/net/connectivity_checker_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +10 lines, -13 lines 0 comments Download

Messages

Total messages: 81 (42 generated)
almasrymina
3 years, 11 months ago (2017-01-25 02:50:28 UTC) #3
almasrymina
https://codereview.chromium.org/2647323010/diff/20001/chromecast/browser/cast_browser_process.cc File chromecast/browser/cast_browser_process.cc (right): https://codereview.chromium.org/2647323010/diff/20001/chromecast/browser/cast_browser_process.cc#newcode101 chromecast/browser/cast_browser_process.cc:101: std::string proxy_server = pref_service_->GetString("proxy-server"); I'm not too sure about ...
3 years, 11 months ago (2017-01-25 02:52:57 UTC) #4
wzhong
https://codereview.chromium.org/2647323010/diff/20001/chromecast/browser/cast_browser_process.cc File chromecast/browser/cast_browser_process.cc (right): https://codereview.chromium.org/2647323010/diff/20001/chromecast/browser/cast_browser_process.cc#newcode101 chromecast/browser/cast_browser_process.cc:101: std::string proxy_server = pref_service_->GetString("proxy-server"); On 2017/01/25 02:52:56, almasrymina wrote: ...
3 years, 11 months ago (2017-01-25 03:03:45 UTC) #5
gfhuang
On 2017/01/25 03:03:45, wzhong wrote: > https://codereview.chromium.org/2647323010/diff/20001/chromecast/browser/cast_browser_process.cc > File chromecast/browser/cast_browser_process.cc (right): > > https://codereview.chromium.org/2647323010/diff/20001/chromecast/browser/cast_browser_process.cc#newcode101 > ...
3 years, 11 months ago (2017-01-25 03:09:22 UTC) #6
gfhuang
3 years, 11 months ago (2017-01-25 03:09:28 UTC) #7
almasrymina
On 2017/01/25 03:09:22, gfhuang wrote: > On 2017/01/25 03:03:45, wzhong wrote: > > > https://codereview.chromium.org/2647323010/diff/20001/chromecast/browser/cast_browser_process.cc ...
3 years, 11 months ago (2017-01-25 03:11:09 UTC) #8
gfhuang
On 2017/01/25 03:11:09, almasrymina wrote: > On 2017/01/25 03:09:22, gfhuang wrote: > > On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 03:13:30 UTC) #9
wzhong
On 2017/01/25 03:13:30, gfhuang wrote: > On 2017/01/25 03:11:09, almasrymina wrote: > > On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 03:32:44 UTC) #10
gfhuang
On 2017/01/25 03:32:44, wzhong wrote: > On 2017/01/25 03:13:30, gfhuang wrote: > > On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 03:38:04 UTC) #11
wzhong
For OOBE, the HTTP API can be called over hotspot before setting up.
3 years, 11 months ago (2017-01-25 03:44:30 UTC) #12
lcwu1
On 2017/01/25 03:44:30, wzhong wrote: > For OOBE, the HTTP API can be called over ...
3 years, 11 months ago (2017-01-25 17:46:06 UTC) #13
wzhong
On 2017/01/25 17:46:06, lcwu1 wrote: > On 2017/01/25 03:44:30, wzhong wrote: > > For OOBE, ...
3 years, 11 months ago (2017-01-25 17:51:06 UTC) #14
lcwu1
On 2017/01/25 17:51:06, wzhong wrote: > On 2017/01/25 17:46:06, lcwu1 wrote: > > On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 17:59:58 UTC) #15
almasrymina
On 2017/01/25 03:03:45, wzhong wrote: > https://codereview.chromium.org/2647323010/diff/20001/chromecast/browser/cast_browser_process.cc > File chromecast/browser/cast_browser_process.cc (right): > > https://codereview.chromium.org/2647323010/diff/20001/chromecast/browser/cast_browser_process.cc#newcode101 > ...
3 years, 11 months ago (2017-01-25 20:48:54 UTC) #16
wzhong
It doesn't seem right loading prefs in browser process. Can you try ProxyService::ResetConfigService() when pref ...
3 years, 11 months ago (2017-01-26 02:25:38 UTC) #25
wzhong
Actually there is a PrefProxyConfigTracker class that tracks proxy config change based on prefs, which ...
3 years, 11 months ago (2017-01-26 15:26:13 UTC) #26
almasrymina
On 2017/01/26 15:26:13, wzhong wrote: > Actually there is a PrefProxyConfigTracker class that tracks proxy ...
3 years, 11 months ago (2017-01-26 23:21:48 UTC) #27
wzhong
You didn't say which calledOnValidThread is failing. The checker is to make sure the APIs ...
3 years, 11 months ago (2017-01-26 23:34:12 UTC) #28
almasrymina
We got over the PrefProxyConfigTracker problem and I've updated the CL with this implementation. PTAL.
3 years, 10 months ago (2017-01-27 23:12:25 UTC) #30
wzhong
https://codereview.chromium.org/2647323010/diff/100001/chromecast/browser/cast_browser_process.cc File chromecast/browser/cast_browser_process.cc (right): https://codereview.chromium.org/2647323010/diff/100001/chromecast/browser/cast_browser_process.cc#newcode7 chromecast/browser/cast_browser_process.cc:7: #include <string> Needed? Or lint complains? https://codereview.chromium.org/2647323010/diff/100001/chromecast/browser/cast_browser_process.cc#newcode23 chromecast/browser/cast_browser_process.cc:23: #include ...
3 years, 10 months ago (2017-01-27 23:37:17 UTC) #32
almasrymina
I had to update the implementation a bit to fix internal unittests failing. Also addressed ...
3 years, 10 months ago (2017-02-06 22:38:35 UTC) #33
almasrymina
It's not straightforward to have ConnectivityChecker use the proxy objects passed in from cast_browser_main_parts.cc. The ...
3 years, 10 months ago (2017-02-07 00:20:24 UTC) #40
almasrymina
The new test failure here is quite problematic too. it's a DCHECK is in the ...
3 years, 10 months ago (2017-02-07 04:20:24 UTC) #41
almasrymina
Seems like using pref_proxy_config_tracker for this is really problematic. The pref_proxy_config_tracker_ instance needs to be ...
3 years, 10 months ago (2017-02-07 04:26:43 UTC) #42
almasrymina
Ah, I guess I might be able to use: io_task_runner_->DeleteSoon(FROM_HERE, proxy_server_.release()); in the destructor of ...
3 years, 10 months ago (2017-02-07 04:34:04 UTC) #43
wzhong
https://codereview.chromium.org/2647323010/diff/240001/chromecast/browser/cast_browser_process.cc File chromecast/browser/cast_browser_process.cc (right): https://codereview.chromium.org/2647323010/diff/240001/chromecast/browser/cast_browser_process.cc#newcode106 chromecast/browser/cast_browser_process.cc:106: pref_proxy_config_tracker_impl_ = I'd rather you have a separate function ...
3 years, 10 months ago (2017-02-07 15:56:03 UTC) #56
wzhong
I actually think that whether connectivity_checker needs to go through proxy settings is debatable. Similarly, ...
3 years, 10 months ago (2017-02-07 16:25:45 UTC) #57
wzhong
Another thought: can we pass const scoped_refptr<net::URLRequestContextGetter>& request_context around to connectivity_checker and to cast_receiver?
3 years, 10 months ago (2017-02-07 16:30:31 UTC) #58
almasrymina
On 2017/02/07 16:30:31, wzhong wrote: > Another thought: can we pass const scoped_refptr<net::URLRequestContextGetter>& > request_context ...
3 years, 10 months ago (2017-02-07 21:04:13 UTC) #61
wzhong
lgtm Great! Much simpler. https://codereview.chromium.org/2647323010/diff/280001/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/2647323010/diff/280001/chromecast/net/connectivity_checker_impl.cc#newcode83 chromecast/net/connectivity_checker_impl.cc:83: url_request_context_ = url_request_context_getter_->GetURLRequestContext(); Nit: can ...
3 years, 10 months ago (2017-02-07 22:00:06 UTC) #64
almasrymina
Steven, we're using your proxy_config component to add proxy support for chromecast. PTAL.
3 years, 10 months ago (2017-02-07 23:36:10 UTC) #66
stevenjb
owner lgtm
3 years, 10 months ago (2017-02-07 23:58:26 UTC) #67
halliwell
just nits https://codereview.chromium.org/2647323010/diff/280001/chromecast/browser/cast_browser_process.cc File chromecast/browser/cast_browser_process.cc (right): https://codereview.chromium.org/2647323010/diff/280001/chromecast/browser/cast_browser_process.cc#newcode21 chromecast/browser/cast_browser_process.cc:21: #include "net/proxy/proxy_service.h" unused? think you can revert ...
3 years, 10 months ago (2017-02-08 00:07:06 UTC) #68
almasrymina
https://codereview.chromium.org/2647323010/diff/240001/chromecast/browser/cast_browser_process.cc File chromecast/browser/cast_browser_process.cc (right): https://codereview.chromium.org/2647323010/diff/240001/chromecast/browser/cast_browser_process.cc#newcode106 chromecast/browser/cast_browser_process.cc:106: pref_proxy_config_tracker_impl_ = On 2017/02/07 15:56:02, wzhong wrote: > I'd ...
3 years, 10 months ago (2017-02-08 00:48:04 UTC) #69
halliwell
On 2017/02/08 00:48:04, almasrymina wrote: > https://codereview.chromium.org/2647323010/diff/240001/chromecast/browser/cast_browser_process.cc > File chromecast/browser/cast_browser_process.cc (right): > > https://codereview.chromium.org/2647323010/diff/240001/chromecast/browser/cast_browser_process.cc#newcode106 > ...
3 years, 10 months ago (2017-02-08 00:53:42 UTC) #70
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/2647323010/300001
3 years, 10 months ago (2017-02-08 01:04:18 UTC) #73
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/305423)
3 years, 10 months ago (2017-02-08 01:39:06 UTC) #75
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/2647323010/320001
3 years, 10 months ago (2017-02-08 02:13:24 UTC) #78
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 03:34:50 UTC) #81
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/dfb5b36388a651bf0651f6c56456...

Powered by Google App Engine
This is Rietveld 408576698