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

Issue 1081673004: Chromecast startup race: don't add filter before HostResolver exists. (Closed)

Created:
5 years, 8 months ago by gunsch
Modified:
5 years, 8 months ago
Reviewers:
lcwu1, byungchul
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Chromecast startup race: don't add filter before HostResolver exists. HostResolver is on the I/O thread, which doesn't always have a chance to run before filters are added. Get HostResolver from the I/O thread. R=lcwu@chromium.org,byungchul@chromium.org BUG=None, but the internal builders are failing Committed: https://crrev.com/3e32f30e87ac59351c01af0ec7d1e972298d3b29 Cr-Commit-Position: refs/heads/master@{#326092}

Patch Set 1 #

Total comments: 2

Patch Set 2 : explicitly do I/O-thread initialization #

Total comments: 2

Patch Set 3 : logic all in CCBC #

Total comments: 2

Patch Set 4 : merges PostTask #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -4 lines) Patch
M chromecast/browser/cast_content_browser_client.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 2 chunks +26 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
gunsch
5 years, 8 months ago (2015-04-16 23:41:42 UTC) #1
byungchul
https://codereview.chromium.org/1081673004/diff/1/chromecast/browser/cast_content_browser_client.cc File chromecast/browser/cast_content_browser_client.cc (right): https://codereview.chromium.org/1081673004/diff/1/chromecast/browser/cast_content_browser_client.cc#newcode89 chromecast/browser/cast_content_browser_client.cc:89: base::Unretained(this), host->GetID())); It changes the order of message filter. ...
5 years, 8 months ago (2015-04-17 00:22:20 UTC) #2
gunsch
https://codereview.chromium.org/1081673004/diff/1/chromecast/browser/cast_content_browser_client.cc File chromecast/browser/cast_content_browser_client.cc (right): https://codereview.chromium.org/1081673004/diff/1/chromecast/browser/cast_content_browser_client.cc#newcode89 chromecast/browser/cast_content_browser_client.cc:89: base::Unretained(this), host->GetID())); On 2015/04/17 00:22:20, byungchul wrote: > It ...
5 years, 8 months ago (2015-04-17 01:06:27 UTC) #3
byungchul
https://codereview.chromium.org/1081673004/diff/20001/chromecast/browser/cast_browser_main_parts.cc File chromecast/browser/cast_browser_main_parts.cc (right): https://codereview.chromium.org/1081673004/diff/20001/chromecast/browser/cast_browser_main_parts.cc#newcode284 chromecast/browser/cast_browser_main_parts.cc:284: url_request_context_factory_->GetSystemGetter()))); I would call this in CastContentBrowserClient::RenderProcessWillLaunch(). You can ...
5 years, 8 months ago (2015-04-17 17:56:17 UTC) #4
gunsch
https://codereview.chromium.org/1081673004/diff/20001/chromecast/browser/cast_browser_main_parts.cc File chromecast/browser/cast_browser_main_parts.cc (right): https://codereview.chromium.org/1081673004/diff/20001/chromecast/browser/cast_browser_main_parts.cc#newcode284 chromecast/browser/cast_browser_main_parts.cc:284: url_request_context_factory_->GetSystemGetter()))); On 2015/04/17 17:56:17, byungchul wrote: > I would ...
5 years, 8 months ago (2015-04-17 18:24:42 UTC) #5
gunsch
ping? our internal tests are still failing because of this
5 years, 8 months ago (2015-04-20 20:02:03 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081673004/40001
5 years, 8 months ago (2015-04-20 20:05:03 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-20 21:22:01 UTC) #10
byungchul
lgtm https://codereview.chromium.org/1081673004/diff/40001/chromecast/browser/cast_content_browser_client.cc File chromecast/browser/cast_content_browser_client.cc (right): https://codereview.chromium.org/1081673004/diff/40001/chromecast/browser/cast_content_browser_client.cc#newcode98 chromecast/browser/cast_content_browser_client.cc:98: base::Unretained(this), host->GetID())); I am fine with this, but ...
5 years, 8 months ago (2015-04-21 00:24:30 UTC) #11
gunsch
https://codereview.chromium.org/1081673004/diff/40001/chromecast/browser/cast_content_browser_client.cc File chromecast/browser/cast_content_browser_client.cc (right): https://codereview.chromium.org/1081673004/diff/40001/chromecast/browser/cast_content_browser_client.cc#newcode98 chromecast/browser/cast_content_browser_client.cc:98: base::Unretained(this), host->GetID())); I like that idea, done.
5 years, 8 months ago (2015-04-21 17:10:46 UTC) #12
byungchul
lgtm
5 years, 8 months ago (2015-04-21 17:49:25 UTC) #13
lcwu1
lgtm
5 years, 8 months ago (2015-04-21 18:25:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081673004/60001
5 years, 8 months ago (2015-04-21 18:43:36 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-21 19:12:14 UTC) #17
commit-bot: I haz the power
5 years, 8 months ago (2015-04-21 19:13:02 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3e32f30e87ac59351c01af0ec7d1e972298d3b29
Cr-Commit-Position: refs/heads/master@{#326092}

Powered by Google App Engine
This is Rietveld 408576698