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

Issue 1486403002: Mojo-ifying chrome://version.

Created:
5 years ago by dpapad
Modified:
3 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), groby-ooo-7-16, jam, oshima+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo-ifying chrome://version. - Adding version.mojom interface file. - Removing version_handler_chromeos.cc (merging functionality to version_handler.cc). - Modifying version_handler.cc to use MOJO for communicating with JS. - Updating gn,gyp,gypi and grd files as necessary. Preserving IOS functionality. - Adding about_version_ios.js which only includes the parts that are actually used by IOS. - about_version.js is Mojo-ified and serves all platforms except IOS. BUG=566163

Patch Set 1 #

Patch Set 2 : Populate UI with dummy Mojo responses. #

Patch Set 3 : file paths and variations working #

Patch Set 4 : Works for non-CHROMEOS #

Patch Set 5 : ChromeOS version works. #

Patch Set 6 : cleanups #

Patch Set 7 : Fix IOS #

Patch Set 8 : more IOS fixes #

Patch Set 9 : more IOS fix #

Patch Set 10 : Remove TODO #

Total comments: 6

Patch Set 11 : Addressing comments #

Total comments: 4

Patch Set 12 : Addressing comments #

Total comments: 9

Patch Set 13 : revert weak_ptr changes #

Total comments: 1

Patch Set 14 : Fixing ActiveTabTest.ChromeUrlGrants #

Total comments: 3

Patch Set 15 : Addressing DOMContentLoaded TODO. #

Total comments: 31

Patch Set 16 : Addressing comments #

Total comments: 2

Patch Set 17 : Change StrongBinding to Binding. #

Patch Set 18 : Rebasing. #

Patch Set 19 : Use unique_ptr #

Total comments: 4

Patch Set 20 : Add missing include #

Total comments: 6

Patch Set 21 : Resolve conflicts. #

Patch Set 22 : rebase #

Patch Set 23 : Components. #

Patch Set 24 : attempt to fix GYP build #

Patch Set 25 : Fix linker #

Patch Set 26 : Rebasing. #

Patch Set 27 : Update OWNERS, use new mojo types #

Patch Set 28 : change slashes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -167 lines) Patch
M chrome/browser/extensions/active_tab_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/version_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +29 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/version_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 5 chunks +78 lines, -44 lines 0 comments Download
D chrome/browser/ui/webui/version_handler_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -35 lines 0 comments Download
M chrome/browser/ui/webui/version_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +11 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/version_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +10 lines, -13 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +1 line, -2 lines 0 comments Download
M components/components_resources.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M components/resources/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -0 lines 0 comments Download
M components/resources/version_ui_resources.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -0 lines 0 comments Download
M components/version_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 26 2 chunks +13 lines, -0 lines 0 comments Download
M components/version_ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 26 1 chunk +10 lines, -0 lines 0 comments Download
M components/version_ui/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +3 lines, -0 lines 0 comments Download
M components/version_ui/resources/about_version.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -4 lines 0 comments Download
M components/version_ui/resources/about_version.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +52 lines, -48 lines 0 comments Download
A components/version_ui/resources/about_version_ios.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +23 lines, -0 lines 0 comments Download
A components/version_ui/version.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +16 lines, -0 lines 0 comments Download
M components/version_ui/version_handler_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +6 lines, -0 lines 0 comments Download
M components/version_ui/version_handler_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +7 lines, -1 line 0 comments Download
M components/version_ui/version_ui_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -2 lines 0 comments Download
M components/version_ui/version_ui_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/webui/version_ui.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 78 (33 generated)
dpapad
@sky: Feel free to suggest any reviewers that should be included. FYI, there is a ...
5 years ago (2015-12-04 03:08:15 UTC) #11
sky
https://codereview.chromium.org/1486403002/diff/240001/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): https://codereview.chromium.org/1486403002/diff/240001/chrome/browser/ui/webui/version_handler.cc#newcode84 chrome/browser/ui/webui/version_handler.cc:84: mojo::Array<mojo::String> file_paths(0); AFAICT the results for the file path ...
5 years ago (2015-12-04 16:35:52 UTC) #12
sky
+estade as I'm not an owner of components/version_ui
5 years ago (2015-12-04 16:36:56 UTC) #15
dpapad
https://codereview.chromium.org/1486403002/diff/240001/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): https://codereview.chromium.org/1486403002/diff/240001/chrome/browser/ui/webui/version_handler.cc#newcode84 chrome/browser/ui/webui/version_handler.cc:84: mojo::Array<mojo::String> file_paths(0); On 2015/12/04 at 16:35:52, sky wrote: > ...
5 years ago (2015-12-04 18:13:15 UTC) #16
Evan Stade
why is there no bug filed for this? I have very little context about this ...
5 years ago (2015-12-04 19:50:28 UTC) #18
dpapad
@estade: Filed a bug which provides the context for this change. https://codereview.chromium.org/1486403002/diff/260001/components/version_ui/resources/about_version.js File components/version_ui/resources/about_version.js (right): ...
5 years ago (2015-12-04 22:01:51 UTC) #20
Evan Stade
thanks for the doc. This looks cool. https://codereview.chromium.org/1486403002/diff/280001/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): https://codereview.chromium.org/1486403002/diff/280001/chrome/browser/ui/webui/version_handler.cc#newcode74 chrome/browser/ui/webui/version_handler.cc:74: AsWeakPtr(), why ...
5 years ago (2015-12-04 22:30:20 UTC) #21
dpapad
https://codereview.chromium.org/1486403002/diff/280001/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): https://codereview.chromium.org/1486403002/diff/280001/chrome/browser/ui/webui/version_handler.cc#newcode74 chrome/browser/ui/webui/version_handler.cc:74: AsWeakPtr(), On 2015/12/04 at 22:30:20, Evan Stade wrote: > ...
5 years ago (2015-12-04 23:28:14 UTC) #22
Evan Stade
https://codereview.chromium.org/1486403002/diff/280001/components/version_ui/resources/about_version.js File components/version_ui/resources/about_version.js (right): https://codereview.chromium.org/1486403002/diff/280001/components/version_ui/resources/about_version.js#newcode7 components/version_ui/resources/about_version.js:7: 'chrome/browser/ui/webui/version.mojom', On 2015/12/04 23:28:14, dpapad wrote: > On 2015/12/04 ...
5 years ago (2015-12-04 23:32:26 UTC) #23
Dan Beam
https://codereview.chromium.org/1486403002/diff/280001/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): https://codereview.chromium.org/1486403002/diff/280001/chrome/browser/ui/webui/version_handler.cc#newcode74 chrome/browser/ui/webui/version_handler.cc:74: AsWeakPtr(), On 2015/12/04 23:28:13, dpapad wrote: > On 2015/12/04 ...
5 years ago (2015-12-04 23:32:55 UTC) #24
dpapad
https://codereview.chromium.org/1486403002/diff/280001/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): https://codereview.chromium.org/1486403002/diff/280001/chrome/browser/ui/webui/version_handler.cc#newcode74 chrome/browser/ui/webui/version_handler.cc:74: AsWeakPtr(), On 2015/12/04 at 23:32:55, Dan Beam wrote: > ...
5 years ago (2015-12-04 23:42:26 UTC) #25
sky
https://codereview.chromium.org/1486403002/diff/280001/components/version_ui/resources/about_version.js File components/version_ui/resources/about_version.js (right): https://codereview.chromium.org/1486403002/diff/280001/components/version_ui/resources/about_version.js#newcode7 components/version_ui/resources/about_version.js:7: 'chrome/browser/ui/webui/version.mojom', On 2015/12/04 23:32:26, Evan Stade wrote: > On ...
5 years ago (2015-12-04 23:58:39 UTC) #26
sky
LGTM - I believe we are also doing security reviews on new mojom files that ...
5 years ago (2015-12-05 00:07:00 UTC) #28
Evan Stade
https://codereview.chromium.org/1486403002/diff/280001/components/version_ui/resources/about_version.js File components/version_ui/resources/about_version.js (right): https://codereview.chromium.org/1486403002/diff/280001/components/version_ui/resources/about_version.js#newcode7 components/version_ui/resources/about_version.js:7: 'chrome/browser/ui/webui/version.mojom', On 2015/12/04 23:58:39, sky wrote: > On 2015/12/04 ...
5 years ago (2015-12-05 00:07:25 UTC) #29
dpapad
https://codereview.chromium.org/1486403002/diff/320001/chrome/browser/extensions/active_tab_unittest.cc File chrome/browser/extensions/active_tab_unittest.cc (right): https://codereview.chromium.org/1486403002/diff/320001/chrome/browser/extensions/active_tab_unittest.cc#newcode364 chrome/browser/extensions/active_tab_unittest.cc:364: GURL internal("chrome://about"); @rdevlin.cronin:Is this fix OK for this test? ...
5 years ago (2015-12-07 22:42:18 UTC) #31
Devlin
https://codereview.chromium.org/1486403002/diff/320001/chrome/browser/extensions/active_tab_unittest.cc File chrome/browser/extensions/active_tab_unittest.cc (right): https://codereview.chromium.org/1486403002/diff/320001/chrome/browser/extensions/active_tab_unittest.cc#newcode364 chrome/browser/extensions/active_tab_unittest.cc:364: GURL internal("chrome://about"); On 2015/12/07 22:42:18, dpapad wrote: > @rdevlin.cronin:Is ...
5 years ago (2015-12-07 22:47:52 UTC) #32
sky
https://codereview.chromium.org/1486403002/diff/320001/chrome/browser/extensions/active_tab_unittest.cc File chrome/browser/extensions/active_tab_unittest.cc (right): https://codereview.chromium.org/1486403002/diff/320001/chrome/browser/extensions/active_tab_unittest.cc#newcode364 chrome/browser/extensions/active_tab_unittest.cc:364: GURL internal("chrome://about"); On 2015/12/07 22:42:18, dpapad wrote: > @rdevlin.cronin:Is ...
5 years ago (2015-12-08 00:19:56 UTC) #33
dpapad
Friendly ping. @nasko: Please review (security) for the mojom file. @dbeam: Please review ui/webui/*
5 years ago (2015-12-08 20:06:12 UTC) #34
Dan Beam
why wouldn't we keep the old separation and just make to mojo interfaces? 1 for ...
5 years ago (2015-12-09 01:39:31 UTC) #35
Dan Beam
make 2 mojo interfaces**
5 years ago (2015-12-09 01:40:18 UTC) #36
dpapad
On 2015/12/09 at 01:40:18, dbeam wrote: > make 2 mojo interfaces** Having two interfaces will ...
5 years ago (2015-12-09 02:10:18 UTC) #37
sky
On 2015/12/09 02:10:18, dpapad wrote: > On 2015/12/09 at 01:40:18, dbeam wrote: > > make ...
5 years ago (2015-12-09 17:06:18 UTC) #38
Dan Beam
- Removing version_handler_chromeos.cc (merging functionality to version_handler.cc). I'm still confused at to why this ^ ...
5 years ago (2015-12-09 20:19:34 UTC) #39
nasko
I'll take a pass over this CL likely tomorrow.
5 years ago (2015-12-09 20:20:39 UTC) #40
dpapad
>- Removing version_handler_chromeos.cc (merging functionality to > version_handler.cc). >I'm still confused at to why this ...
5 years ago (2015-12-09 20:34:00 UTC) #41
Dan Beam
On 2015/12/09 20:34:00, dpapad wrote: > >- Removing version_handler_chromeos.cc (merging functionality to > > version_handler.cc). ...
5 years ago (2015-12-09 20:38:19 UTC) #42
dpapad
On 2015/12/09 at 20:38:19, dbeam wrote: > On 2015/12/09 20:34:00, dpapad wrote: > > >- ...
5 years ago (2015-12-09 20:45:48 UTC) #43
Dan Beam
how are we going to test this code? https://codereview.chromium.org/1486403002/diff/340001/chrome/browser/extensions/active_tab_unittest.cc File chrome/browser/extensions/active_tab_unittest.cc (right): https://codereview.chromium.org/1486403002/diff/340001/chrome/browser/extensions/active_tab_unittest.cc#newcode364 chrome/browser/extensions/active_tab_unittest.cc:364: GURL ...
5 years ago (2015-12-09 21:45:08 UTC) #44
Dan Beam
On 2015/12/09 20:45:48, dpapad wrote: > On 2015/12/09 at 20:38:19, dbeam wrote: > > On ...
5 years ago (2015-12-09 21:51:36 UTC) #45
nasko
How are we ensuring that the process that is calling the new Version Mojo interface ...
5 years ago (2015-12-09 23:39:05 UTC) #46
Dan Beam
On 2015/12/09 23:39:05, nasko wrote: > How are we ensuring that the process that is ...
5 years ago (2015-12-09 23:49:55 UTC) #47
dpapad
>how are we going to test this code? That is the next challenge before converting ...
5 years ago (2015-12-10 01:08:28 UTC) #49
sky
https://codereview.chromium.org/1486403002/diff/380001/chrome/browser/ui/webui/version_handler.h File chrome/browser/ui/webui/version_handler.h (right): https://codereview.chromium.org/1486403002/diff/380001/chrome/browser/ui/webui/version_handler.h#newcode49 chrome/browser/ui/webui/version_handler.h:49: mojo::StrongBinding<VersionHandlerMojo> binding_; Normally MojoWebUIHandler is owned by content. StrongBinding ...
5 years ago (2015-12-10 16:20:34 UTC) #50
dpapad
https://codereview.chromium.org/1486403002/diff/380001/chrome/browser/ui/webui/version_handler.h File chrome/browser/ui/webui/version_handler.h (right): https://codereview.chromium.org/1486403002/diff/380001/chrome/browser/ui/webui/version_handler.h#newcode49 chrome/browser/ui/webui/version_handler.h:49: mojo::StrongBinding<VersionHandlerMojo> binding_; On 2015/12/10 at 16:20:34, sky wrote: > ...
5 years ago (2015-12-10 18:40:19 UTC) #51
Eugene But (OOO till 7-30)
Thanks! This works on iOS after adding a missing include. Mojo on iOS is not ...
4 years, 6 months ago (2016-06-01 23:32:00 UTC) #53
dpapad
Does it work on IOS using about_version.js? As explained in the comment, about_version_ios.js was introduced ...
4 years, 6 months ago (2016-06-01 23:44:11 UTC) #54
Eugene But (OOO till 7-30)
I'm the process of adding all source code and resources to iOS target when I ...
4 years, 6 months ago (2016-06-02 22:23:12 UTC) #55
Eugene But (OOO till 7-30)
Mojo version works on iOSwith a few tweaks I mentioned in the comments. iOS CL ...
4 years, 6 months ago (2016-06-04 01:15:25 UTC) #56
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1486403002/diff/460001/chrome/browser/ui/webui/version_handler.h File chrome/browser/ui/webui/version_handler.h (right): https://codereview.chromium.org/1486403002/diff/460001/chrome/browser/ui/webui/version_handler.h#newcode9 chrome/browser/ui/webui/version_handler.h:9: On 2016/06/04 01:15:25, Eugene But wrote: > This file ...
4 years, 6 months ago (2016-06-06 17:20:54 UTC) #57
dpapad
This CL is now revived, PTAL. When this CL was originally authored (quite a few ...
4 years, 5 months ago (2016-07-21 22:58:33 UTC) #69
dpapad
On 2016/07/21 at 22:58:33, dpapad wrote: > This CL is now revived, PTAL. > > ...
4 years, 5 months ago (2016-07-21 22:59:45 UTC) #70
sky
That usually indicates deps aren't correct. That is, someone is trying to use version.mojom.js before ...
4 years, 5 months ago (2016-07-21 23:04:14 UTC) #71
dpapad
On 2016/07/21 at 23:04:14, sky wrote: > That usually indicates deps aren't correct. That is, ...
4 years, 5 months ago (2016-07-21 23:20:35 UTC) #72
Eugene But (OOO till 7-30)
On 2016/07/21 23:20:35, dpapad wrote: > On 2016/07/21 at 23:04:14, sky wrote: > > That ...
3 years, 12 months ago (2016-12-27 23:42:07 UTC) #77
dpapad
3 years, 11 months ago (2017-01-05 21:58:38 UTC) #78
On 2016/12/27 at 23:42:07, eugenebut wrote:
> On 2016/07/21 23:20:35, dpapad wrote:
> > On 2016/07/21 at 23:04:14, sky wrote:
> > > That usually indicates deps aren't correct. That is, someone is trying
> > > to use version.mojom.js before it's been generated.
> > 
> > I am suspecting that it could have been a forward VS backward slash issue
(see
> > patch 28).
> Demetrios, do you still plan to Mojo-ify chrome://version?

This has been sitting on the backburner for a while, mostly because of me
focusing on the MD Settings effort (higher priority), but also was waiting on
some Mojo JS improvements (after communicating with the Mojo team). I'll look
into how much work it is to rebase that CL and attempt to get it reviewed and
landed before any Mojo JS improvements actually happen, but can't focus on this
until MD Settings is launched.

Powered by Google App Engine
This is Rietveld 408576698