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

Issue 1214723012: Track whether a created WebContents has a resume pending. (Closed)

Created:
5 years, 5 months ago by gone
Modified:
5 years, 5 months ago
Reviewers:
jam, Maria
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Track whether a created WebContents has a resume pending. On Android, it's possible that a WebContents is created and cannot be loaded immediately, which occurs when Chrome needs to start an Activity asynchronously. There's currently no good way to know when the WebContents is in this state, though. * Start storing whether the WebContents has needs to resume loading in the WebContentsImpl, which can then be checked when the WebContentsImpl may begin accepting requests from the renderer. * Clean up Android code that heuristically tracks whether the WebContents could be in this state. * Existing Java and Chromium tests catch regressions. BUG=508186 Committed: https://crrev.com/e6b7b46750d4a54a4005882a19d48334e5a9f628 Cr-Commit-Position: refs/heads/master@{#338323}

Patch Set 1 #

Patch Set 2 : Fixing logic #

Total comments: 8

Patch Set 3 : Comments #

Messages

Total messages: 18 (5 generated)
gone
@jam: Do these changes to the WebContentsImpl seem reasonable?
5 years, 5 months ago (2015-07-08 20:53:42 UTC) #2
Maria
lgtm https://chromiumcodereview.appspot.com/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://chromiumcodereview.appspot.com/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode1821 content/browser/web_contents/web_contents_impl.cc:1821: contents->SetIsResumePending(); I think it's a bit odd to ...
5 years, 5 months ago (2015-07-08 21:02:51 UTC) #3
gone
https://chromiumcodereview.appspot.com/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://chromiumcodereview.appspot.com/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode1821 content/browser/web_contents/web_contents_impl.cc:1821: contents->SetIsResumePending(); On 2015/07/08 21:02:51, Maria wrote: > I think ...
5 years, 5 months ago (2015-07-08 21:04:45 UTC) #4
Maria
lgtm https://chromiumcodereview.appspot.com/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://chromiumcodereview.appspot.com/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode1821 content/browser/web_contents/web_contents_impl.cc:1821: contents->SetIsResumePending(); On 2015/07/08 21:04:45, dfalcantara wrote: > On ...
5 years, 5 months ago (2015-07-08 21:20:29 UTC) #5
jam
https://codereview.chromium.org/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode1821 content/browser/web_contents/web_contents_impl.cc:1821: contents->SetIsResumePending(); it seems there's no need for a function, ...
5 years, 5 months ago (2015-07-09 16:50:28 UTC) #6
gone
https://chromiumcodereview.appspot.com/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://chromiumcodereview.appspot.com/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode1821 content/browser/web_contents/web_contents_impl.cc:1821: contents->SetIsResumePending(); On 2015/07/09 16:50:28, jam wrote: > it seems ...
5 years, 5 months ago (2015-07-09 17:11:49 UTC) #7
jam
lgtm https://codereview.chromium.org/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1214723012/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode2672 content/browser/web_contents/web_contents_impl.cc:2672: if (is_resume_pending_) { On 2015/07/09 17:11:49, dfalcantara wrote: ...
5 years, 5 months ago (2015-07-10 16:35:41 UTC) #8
gone
Thanks!
5 years, 5 months ago (2015-07-10 17:12:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1214723012/40001
5 years, 5 months ago (2015-07-10 17:12:42 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/108355) (exceeded global retry quota)
5 years, 5 months ago (2015-07-10 17:48:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1214723012/40001
5 years, 5 months ago (2015-07-10 17:50:05 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-10 18:14:29 UTC) #17
commit-bot: I haz the power
5 years, 5 months ago (2015-07-10 18:15:26 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e6b7b46750d4a54a4005882a19d48334e5a9f628
Cr-Commit-Position: refs/heads/master@{#338323}

Powered by Google App Engine
This is Rietveld 408576698