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

Issue 2140463002: Remove WebContents::HasManifest. (Closed)

Created:
4 years, 5 months ago by dominickn
Modified:
4 years, 5 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dominickn+watch_chromium.org, jam, mlamouri+watch-content_chromium.org, mlamouri+watch-manifest_chromium.org, nasko+codewatch_chromium.org, Sam McNally
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WebContents::HasManifest. WebContents::GetManifest now returns a manifest URL and a manifest object. The non-emptiness of the URL correlates to whether HasManifest returned true or false. This CL removes the HasManifest method from WebContents and refactors its sole client, app banners, to check the manifest URL returned in GetManifest instead. This eliminates a roundtrip IPC from the app banner flow, which runs on every page load on mobile. Minor changes to when the manifest URL is set in the manifest parsing process are also made to ensure the correctness of this approach. BUG=626969 Committed: https://crrev.com/ea77d54f9f92549a5f565eff096caeab1247b22d Cr-Commit-Position: refs/heads/master@{#404973}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Explanatory comment for manifest_url_ resetting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -249 lines) Patch
M chrome/browser/banners/app_banner_data_fetcher.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/banners/app_banner_data_fetcher.cc View 3 chunks +7 lines, -17 lines 0 comments Download
M content/browser/manifest/manifest_browsertest.cc View 21 chunks +45 lines, -93 lines 0 comments Download
M content/browser/manifest/manifest_manager_host.h View 1 chunk +0 lines, -11 lines 0 comments Download
M content/browser/manifest/manifest_manager_host.cc View 5 chunks +11 lines, -83 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/common/manifest_manager_messages.h View 1 chunk +4 lines, -16 lines 0 comments Download
M content/public/browser/web_contents.h View 1 chunk +3 lines, -7 lines 0 comments Download
M content/renderer/manifest/manifest_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/manifest/manifest_manager.cc View 1 5 chunks +12 lines, -15 lines 0 comments Download

Messages

Total messages: 32 (16 generated)
dominickn
PTAL, thanks! mkwst: please review manifest_messages.h (removed IPC) creis: please review content/public (method removed) mlamouri: ...
4 years, 5 months ago (2016-07-11 02:56:03 UTC) #5
Mike West
Less IPC is better IPC. LGTM % question. https://codereview.chromium.org/2140463002/diff/1/content/renderer/manifest/manifest_manager.cc File content/renderer/manifest/manifest_manager.cc (right): https://codereview.chromium.org/2140463002/diff/1/content/renderer/manifest/manifest_manager.cc#newcode191 content/renderer/manifest/manifest_manager.cc:191: manifest_ ...
4 years, 5 months ago (2016-07-11 08:14:18 UTC) #7
dominickn
https://codereview.chromium.org/2140463002/diff/1/content/renderer/manifest/manifest_manager.cc File content/renderer/manifest/manifest_manager.cc (right): https://codereview.chromium.org/2140463002/diff/1/content/renderer/manifest/manifest_manager.cc#newcode191 content/renderer/manifest/manifest_manager.cc:191: manifest_ = Manifest(); On 2016/07/11 08:14:18, Mike West wrote: ...
4 years, 5 months ago (2016-07-11 10:51:18 UTC) #8
mlamouri (slow - plz ping)
lgtm
4 years, 5 months ago (2016-07-11 10:56:14 UTC) #9
gone
banner stuff lgtm
4 years, 5 months ago (2016-07-11 17:47:54 UTC) #10
Charlie Reis
Thanks for simplifying it! content/ LGTM. [+nasko for IPC review of manifest_manager_messages.h]
4 years, 5 months ago (2016-07-11 18:34:42 UTC) #12
nasko
Code removal is always welcome, so thanks! IPC LGTM
4 years, 5 months ago (2016-07-11 21:52:45 UTC) #13
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/2140463002/20001
4 years, 5 months ago (2016-07-12 00:48:52 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/253566)
4 years, 5 months ago (2016-07-12 01:36:50 UTC) #18
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/2140463002/20001
4 years, 5 months ago (2016-07-12 03:00:10 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/253678)
4 years, 5 months ago (2016-07-12 04:30:46 UTC) #22
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/2140463002/20001
4 years, 5 months ago (2016-07-12 10:50:44 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/254009)
4 years, 5 months ago (2016-07-12 12:26:11 UTC) #26
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/2140463002/20001
4 years, 5 months ago (2016-07-13 01:48:37 UTC) #28
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-13 03:42:13 UTC) #30
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 03:44:12 UTC) #32
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ea77d54f9f92549a5f565eff096caeab1247b22d
Cr-Commit-Position: refs/heads/master@{#404973}

Powered by Google App Engine
This is Rietveld 408576698