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

Issue 112573008: Remove call of PrerenderTracker::TryCancelOnIOThread in ChromeContentBrowserClient::CanCreateWindow… (Closed)

Created:
6 years, 11 months ago by jam
Modified:
6 years, 11 months ago
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, davidben+watch_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Remove call of PrerenderTracker::TryCancelOnIOThread in ChromeContentBrowserClient::CanCreateWindow. I moved cancelling the prerender on the UI thread. BUG=304341 R=jochen@chromium.org, tburkard@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243375

Patch Set 1 #

Patch Set 2 : sync #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : sync #

Total comments: 2

Patch Set 5 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -8 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jam
This is mostly a revert of 217182, with the only difference being that I added ...
6 years, 11 months ago (2014-01-05 21:59:50 UTC) #1
tburkard_google.com
lgtm To unsubscribe from this group and stop receiving emails from it, send an email ...
6 years, 11 months ago (2014-01-06 16:47:16 UTC) #2
tburkard
lgtm To unsubscribe from this group and stop receiving emails from it, send an email ...
6 years, 11 months ago (2014-01-06 16:47:59 UTC) #3
jam
After chatting with Timo, I'll wait for Jochen to review since he's most familiar with ...
6 years, 11 months ago (2014-01-06 17:03:25 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/112573008/diff/200001/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): https://codereview.chromium.org/112573008/diff/200001/chrome/browser/prerender/prerender_contents.cc#newcode107 chrome/browser/prerender/prerender_contents.cc:107: return false; if you return false here, you need ...
6 years, 11 months ago (2014-01-06 19:37:10 UTC) #5
jam
ptal https://codereview.chromium.org/112573008/diff/200001/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): https://codereview.chromium.org/112573008/diff/200001/chrome/browser/prerender/prerender_contents.cc#newcode107 chrome/browser/prerender/prerender_contents.cc:107: return false; On 2014/01/06 19:37:11, jochen wrote: > ...
6 years, 11 months ago (2014-01-06 21:45:21 UTC) #6
jochen (gone - plz use gerrit)
overall lgtm https://codereview.chromium.org/112573008/diff/780001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/112573008/diff/780001/content/browser/web_contents/web_contents_impl.cc#newcode1374 content/browser/web_contents/web_contents_impl.cc:1374: Send(new ViewMsg_Close(route_id)); route_id might be MSG_ROUTING_NONE. in ...
6 years, 11 months ago (2014-01-07 08:10:37 UTC) #7
jam
6 years, 11 months ago (2014-01-07 19:37:31 UTC) #8
thanks, done

https://codereview.chromium.org/112573008/diff/780001/content/browser/web_con...
File content/browser/web_contents/web_contents_impl.cc (right):

https://codereview.chromium.org/112573008/diff/780001/content/browser/web_con...
content/browser/web_contents/web_contents_impl.cc:1374: Send(new
ViewMsg_Close(route_id));
On 2014/01/07 08:10:38, jochen wrote:
> route_id might be MSG_ROUTING_NONE.
> 
> in that case, no view was created.
> 
> maybe we should update the comment on ShouldCreateWebContents to clarify that
an
> embedder has to syncrhonously adopt the route_id if it returns false, or
> otherwise the view is closed?

Done.

Powered by Google App Engine
This is Rietveld 408576698