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

Issue 2402903002: Make the timing of ManifestUpgradeDetectorFetcher::Start() call less subtle (Closed)

Created:
4 years, 2 months ago by pkotwicz
Modified:
4 years, 2 months ago
Reviewers:
dominickn
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the timing of ManifestUpgradeDetectorFetcher::Start() call less subtle Currently ManifestUpgradeDetectorFetcher assumes that ManifestUpgradeDetectorFetcher::Start() will be called prior to the initial page load finishing (a lot of web apps are a single page sites so there is only one page load ever). This assumumption relies on: - The specifics of when ChromeActivity#onDeferredStartup() is called. - How long the WebappRegistry#getWebappDataStorage() invocation in WebApkUpdateManager#updateIfNeeded() takes to call the callback. This CL makes ManifestUpgradeDetectorFetcher::Start() work even if it is called after the initial page load finishes BUG=639536 Committed: https://crrev.com/cd85a3b3a92fb04a89b586110bea55ce3f0bfa00 Cr-Commit-Position: refs/heads/master@{#425110}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -8 lines) Patch
M chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h View 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc View 2 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
pkotwicz
Dominick, can you please take a look?
4 years, 2 months ago (2016-10-10 02:06:09 UTC) #2
dominickn
How often is DidStopLoading called in comparison to DidFinishLoad? And what exactly is the behaviour ...
4 years, 2 months ago (2016-10-10 10:12:45 UTC) #3
dominickn
On 2016/10/10 10:12:45, dominickn wrote: > How often is DidStopLoading called in comparison to DidFinishLoad? ...
4 years, 2 months ago (2016-10-10 10:13:04 UTC) #4
dominickn
For instance, would it be more reliable to make ManifestUpgradeDetectorFetcher::Start run in the deferred startup ...
4 years, 2 months ago (2016-10-10 10:14:43 UTC) #5
pkotwicz
Sorry if the goal of the CL is unclear. - This CL makes ManifestUpgradeDetectorFetcher::Start() work ...
4 years, 2 months ago (2016-10-10 17:36:30 UTC) #7
dominickn
On 2016/10/10 17:36:30, pkotwicz wrote: > Sorry if the goal of the CL is unclear. ...
4 years, 2 months ago (2016-10-11 04:59:58 UTC) #8
pkotwicz
Sorry for the confusion. The goal of this CL is not to do the update ...
4 years, 2 months ago (2016-10-12 04:06:47 UTC) #9
dominickn
On 2016/10/12 04:06:47, pkotwicz wrote: > Sorry for the confusion. The goal of this CL ...
4 years, 2 months ago (2016-10-12 22:02:24 UTC) #10
pkotwicz
In the common case, we do the update check only once because ManifestUpgradeDetector#onGotManifestData() destroys the ...
4 years, 2 months ago (2016-10-13 00:20:46 UTC) #11
dominickn
On 2016/10/13 00:20:46, pkotwicz wrote: > In the common case, we do the update check ...
4 years, 2 months ago (2016-10-13 00:24:14 UTC) #12
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/2402903002/1
4 years, 2 months ago (2016-10-13 18:15:06 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-13 18:52:12 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 18:56:05 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/cd85a3b3a92fb04a89b586110bea55ce3f0bfa00
Cr-Commit-Position: refs/heads/master@{#425110}

Powered by Google App Engine
This is Rietveld 408576698