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

Issue 2230773002: Migrate add to homescreen data fetcher to use InstallableManager. (Closed)

Created:
4 years, 4 months ago by dominickn
Modified:
4 years, 4 months ago
Reviewers:
gone
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate add to homescreen data fetcher to use InstallableManager. This CL stops the add to homescreen data fetcher from fetching a manifest and icon itself, and instead defer that task to the InstallableManager. This is particularly beneficial for PWAs, which may have already run the InstallableManager to fetch the manifest and icon to verify whether they are banner eligible. In this case, the add to homescreen data fetcher no longer needs to IPC to the renderer process, as the data it needs is already cached in InstallableManager. This also paves the way for the WebAPK install flow to be triggered from the add to homescreen dialog. A future CL will make the add to homescreen data fetcher check whether a site is a PWA using the InstallableManager - kicking off the WebAPK flow if so. This CL also tidies up includes and code style in the data fetcher and dialog helper. BUG=628921 Committed: https://crrev.com/ed8b475808ee068d8d453b78a46fe1d8f63f5662 Cr-Commit-Position: refs/heads/master@{#411483}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : More tidying #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -116 lines) Patch
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h View 1 2 4 chunks +23 lines, -27 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc View 1 2 8 chunks +89 lines, -79 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc View 1 2 chunks +0 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (18 generated)
dominickn
PTAL thanks! CC list: FYI. This CL clashes with crrev.com/2228273002 and crrev.com/2218413002, so depending on ...
4 years, 4 months ago (2016-08-10 05:04:06 UTC) #6
Xi Han
On 2016/08/10 05:04:06, dominickn wrote: > PTAL thanks! > > CC list: FYI. This CL ...
4 years, 4 months ago (2016-08-10 14:00:56 UTC) #9
gone
lgtm, but I'm a little confused about whether the CreateForWebContents call does anything on the ...
4 years, 4 months ago (2016-08-10 22:31:58 UTC) #10
dominickn
Thanks! https://codereview.chromium.org/2230773002/diff/1/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc (right): https://codereview.chromium.org/2230773002/diff/1/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc#newcode118 chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc:118: InstallableManager::CreateForWebContents(web_contents()); On 2016/08/10 22:31:58, dfalcantara wrote: > Is ...
4 years, 4 months ago (2016-08-10 23:31:46 UTC) #11
dominickn
Rebased - PTAL to sanity check, thanks!
4 years, 4 months ago (2016-08-11 03:50:12 UTC) #14
gone
lgtm
4 years, 4 months ago (2016-08-12 00:12:23 UTC) #21
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/2230773002/40001
4 years, 4 months ago (2016-08-12 00:14:34 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-12 00:36:22 UTC) #25
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 00:39:48 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ed8b475808ee068d8d453b78a46fe1d8f63f5662
Cr-Commit-Position: refs/heads/master@{#411483}

Powered by Google App Engine
This is Rietveld 408576698