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

Issue 10916182: Refactor the about:version code out of about_ui. (Closed)

Created:
8 years, 3 months ago by SteveT
Modified:
8 years, 2 months ago
Reviewers:
Lei Zhang, joth, Evan Stade
CC:
chromium-reviews, arv (Not doing code reviews), Dan Beam, James Hawkins, Steve Block
Visibility:
Public.

Description

Refactor the about:version code out of about_ui. BUG=None TEST=No user visible changes in about:version. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=158699

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 5

Patch Set 3 : rebase #

Patch Set 4 : enable themes data #

Patch Set 5 : Refactoring complete #

Total comments: 12

Patch Set 6 : Addressed estade comments #

Total comments: 14

Patch Set 7 : more fixes; some bot fixes #

Patch Set 8 : async AbsPath #

Patch Set 9 : cros fixes #

Patch Set 10 : Win fixes #

Total comments: 18

Patch Set 11 : more estade changes #

Total comments: 22

Patch Set 12 : more fixes #

Patch Set 13 : stringvalue fix #

Patch Set 14 : copy FilePath #

Total comments: 4

Patch Set 15 : estade final nits #

Patch Set 16 : Rebase and merge #

Total comments: 4

Patch Set 17 : rebase + lei nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+489 lines, -302 lines) Patch
M android_webview/tools/third_party_files_whitelist.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/about_version.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +20 lines, -7 lines 0 comments Download
M chrome/browser/resources/about_version.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +28 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 13 chunks +0 lines, -283 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_data_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_data_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/version_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/version_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +152 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/version_handler_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/version_handler_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/version_ui.h View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/version_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +136 lines, -0 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 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
SteveT
Hey Evan - Please take an initial look. Note that this is not quite done ...
8 years, 3 months ago (2012-09-07 21:16:04 UTC) #1
Evan Stade
On 2012/09/07 21:16:04, SteveT wrote: > Hey Evan - Please take an initial look. > ...
8 years, 3 months ago (2012-09-10 09:46:46 UTC) #2
Evan Stade
http://codereview.chromium.org/10916182/diff/1/chrome/browser/resources/about_version.html File chrome/browser/resources/about_version.html (right): http://codereview.chromium.org/10916182/diff/1/chrome/browser/resources/about_version.html#newcode39 chrome/browser/resources/about_version.html:39: <td class="version" id="version"><span i18n-content="version"></span> (<span i18n-content="official"></span> <span i18n-content="cl"></span>) <span ...
8 years, 3 months ago (2012-09-10 09:46:59 UTC) #3
SteveT
Patchset up with (most of your) comments addressed. PTAL. Patchset coming shortly with a CrOS ...
8 years, 3 months ago (2012-09-10 15:14:57 UTC) #4
SteveT
A couple more questions for you... See inline. http://codereview.chromium.org/10916182/diff/8001/chrome/browser/ui/webui/about_ui.cc File chrome/browser/ui/webui/about_ui.cc (right): http://codereview.chromium.org/10916182/diff/8001/chrome/browser/ui/webui/about_ui.cc#newcode1361 chrome/browser/ui/webui/about_ui.cc:1361: base::Bind(&HandleAboutVersionStrings, ...
8 years, 3 months ago (2012-09-10 15:40:00 UTC) #5
Evan Stade
http://codereview.chromium.org/10916182/diff/1/chrome/browser/resources/about_version.html File chrome/browser/resources/about_version.html (right): http://codereview.chromium.org/10916182/diff/1/chrome/browser/resources/about_version.html#newcode39 chrome/browser/resources/about_version.html:39: <td class="version" id="version"><span i18n-content="version"></span> (<span i18n-content="official"></span> <span i18n-content="cl"></span>) <span ...
8 years, 3 months ago (2012-09-10 17:07:22 UTC) #6
SteveT
Addressed a couple more small things. Will ping this thread again once the Async+CrOS stuff ...
8 years, 3 months ago (2012-09-10 20:14:51 UTC) #7
SteveT
Okay, async and CrOS stuff now completely pulled out of AboutUI and into VersionUI. PTAL.
8 years, 3 months ago (2012-09-12 21:16:30 UTC) #8
Evan Stade
http://codereview.chromium.org/10916182/diff/6003/chrome/browser/ui/webui/version_ui.cc File chrome/browser/ui/webui/version_ui.cc (right): http://codereview.chromium.org/10916182/diff/6003/chrome/browser/ui/webui/version_ui.cc#newcode49 chrome/browser/ui/webui/version_ui.cc:49: chrome::VersionInfo version_info; switch lines 49 and 50 http://codereview.chromium.org/10916182/diff/6003/chrome/browser/ui/webui/version_ui.cc#newcode52 chrome/browser/ui/webui/version_ui.cc:52: ...
8 years, 3 months ago (2012-09-13 08:05:50 UTC) #9
SteveT
Thanks for your comments - they're addressed now. http://codereview.chromium.org/10916182/diff/6003/chrome/browser/ui/webui/version_ui.cc File chrome/browser/ui/webui/version_ui.cc (right): http://codereview.chromium.org/10916182/diff/6003/chrome/browser/ui/webui/version_ui.cc#newcode49 chrome/browser/ui/webui/version_ui.cc:49: chrome::VersionInfo ...
8 years, 3 months ago (2012-09-13 14:58:01 UTC) #10
Evan Stade
http://codereview.chromium.org/10916182/diff/14015/chrome/browser/ui/webui/version_ui.cc File chrome/browser/ui/webui/version_ui.cc (right): http://codereview.chromium.org/10916182/diff/14015/chrome/browser/ui/webui/version_ui.cc#newcode56 chrome/browser/ui/webui/version_ui.cc:56: html_source->AddString("js_engine", ASCIIToUTF16("V8")); please remove all unnecessary string16 conversions http://codereview.chromium.org/10916182/diff/14015/chrome/browser/ui/webui/version_ui.cc#newcode72 ...
8 years, 3 months ago (2012-09-13 15:23:27 UTC) #11
SteveT
Back to you - PTAL. FYI I am wrangling with the bots currently, so you ...
8 years, 3 months ago (2012-09-13 15:41:24 UTC) #12
Evan Stade
http://codereview.chromium.org/10916182/diff/14015/chrome/browser/ui/webui/version_ui.cc File chrome/browser/ui/webui/version_ui.cc (right): http://codereview.chromium.org/10916182/diff/14015/chrome/browser/ui/webui/version_ui.cc#newcode72 chrome/browser/ui/webui/version_ui.cc:72: : IDS_ABOUT_VERSION_UNOFFICIAL); On 2012/09/13 15:41:27, SteveT wrote: > On ...
8 years, 3 months ago (2012-09-13 16:05:47 UTC) #13
SteveT
Okay, resolved those issues. Back to you. Thanks! http://codereview.chromium.org/10916182/diff/14015/chrome/browser/ui/webui/version_ui.cc File chrome/browser/ui/webui/version_ui.cc (right): http://codereview.chromium.org/10916182/diff/14015/chrome/browser/ui/webui/version_ui.cc#newcode72 chrome/browser/ui/webui/version_ui.cc:72: : ...
8 years, 3 months ago (2012-09-13 17:00:26 UTC) #14
SteveT
Since Evan seems to be out for the day, I'm going to kick off OWNERS ...
8 years, 3 months ago (2012-09-13 19:32:02 UTC) #15
Evan Stade
http://codereview.chromium.org/10916182/diff/4010/chrome/browser/resources/about_version.html File chrome/browser/resources/about_version.html (right): http://codereview.chromium.org/10916182/diff/4010/chrome/browser/resources/about_version.html#newcode41 chrome/browser/resources/about_version.html:41: (<span i18n-content="official"></span> <span i18n-content="cl"></span>) you can put a line ...
8 years, 3 months ago (2012-09-14 09:18:02 UTC) #16
Evan Stade
8 years, 3 months ago (2012-09-14 09:19:06 UTC) #17
Evan Stade
http://codereview.chromium.org/10916182/diff/4010/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): http://codereview.chromium.org/10916182/diff/4010/chrome/browser/ui/webui/version_handler.cc#newcode120 chrome/browser/ui/webui/version_handler.cc:120: new ChromeOSAboutVersionHandler(web_ui()); ignore this
8 years, 3 months ago (2012-09-14 09:19:27 UTC) #18
SteveT
Everything addressed. Back to you. http://codereview.chromium.org/10916182/diff/4010/chrome/browser/resources/about_version.html File chrome/browser/resources/about_version.html (right): http://codereview.chromium.org/10916182/diff/4010/chrome/browser/resources/about_version.html#newcode41 chrome/browser/resources/about_version.html:41: (<span i18n-content="official"></span> <span i18n-content="cl"></span>) ...
8 years, 3 months ago (2012-09-14 14:48:15 UTC) #19
Evan Stade
looking good http://codereview.chromium.org/10916182/diff/8014/chrome/browser/ui/webui/chrome_web_ui_data_source.h File chrome/browser/ui/webui/chrome_web_ui_data_source.h (right): http://codereview.chromium.org/10916182/diff/8014/chrome/browser/ui/webui/chrome_web_ui_data_source.h#newcode24 chrome/browser/ui/webui/chrome_web_ui_data_source.h:24: // Adds a string and its equivalent ...
8 years, 3 months ago (2012-09-14 15:11:29 UTC) #20
SteveT
Thanks again - back to you. http://codereview.chromium.org/10916182/diff/8014/chrome/browser/ui/webui/chrome_web_ui_data_source.h File chrome/browser/ui/webui/chrome_web_ui_data_source.h (right): http://codereview.chromium.org/10916182/diff/8014/chrome/browser/ui/webui/chrome_web_ui_data_source.h#newcode24 chrome/browser/ui/webui/chrome_web_ui_data_source.h:24: // Adds a ...
8 years, 3 months ago (2012-09-14 15:28:36 UTC) #21
Evan Stade
gotta head out. I'll finish up the review monday morning. http://codereview.chromium.org/10916182/diff/8014/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): http://codereview.chromium.org/10916182/diff/8014/chrome/browser/ui/webui/version_handler.cc#newcode24 ...
8 years, 3 months ago (2012-09-14 16:31:03 UTC) #22
SteveT
Addressed everything below. http://codereview.chromium.org/10916182/diff/8014/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): http://codereview.chromium.org/10916182/diff/8014/chrome/browser/ui/webui/version_handler.cc#newcode24 chrome/browser/ui/webui/version_handler.cc:24: void GetFilePaths(FilePath profile_path, Okay sounds good. ...
8 years, 3 months ago (2012-09-14 17:03:15 UTC) #23
SteveT
FYI OWNERS reviewers: This is lower priority now, as it likely won't make it in ...
8 years, 3 months ago (2012-09-14 18:04:50 UTC) #24
Evan Stade
lgtm with nits http://codereview.chromium.org/10916182/diff/2032/chrome/browser/ui/webui/version_handler.cc File chrome/browser/ui/webui/version_handler.cc (right): http://codereview.chromium.org/10916182/diff/2032/chrome/browser/ui/webui/version_handler.cc#newcode69 chrome/browser/ui/webui/version_handler.cc:69: FilePath profile_path = Profile::FromWebUI(web_ui())->GetPath(); probably not ...
8 years, 3 months ago (2012-09-17 09:24:45 UTC) #25
SteveT
Nits addressed and rebase-merged with a related patch. OWNERS Approval Reviewers: PTAL when you have ...
8 years, 3 months ago (2012-09-17 15:45:28 UTC) #26
SteveT
Hey James and Steve, could you guys take a look at this now that we've ...
8 years, 3 months ago (2012-09-21 12:51:58 UTC) #27
SteveT
Pinging James and Steve on this again.
8 years, 3 months ago (2012-09-24 13:40:21 UTC) #28
SteveT
Seems like James and Steve are too busy for a review right now, so swapping ...
8 years, 2 months ago (2012-09-25 15:04:22 UTC) #29
SteveT
Forgot to add joth@.
8 years, 2 months ago (2012-09-25 15:04:44 UTC) #30
joth
lgtm for android_webview
8 years, 2 months ago (2012-09-25 18:21:34 UTC) #31
Lei Zhang
lgtm http://codereview.chromium.org/10916182/diff/7038/chrome/browser/ui/webui/version_ui.cc File chrome/browser/ui/webui/version_ui.cc (right): http://codereview.chromium.org/10916182/diff/7038/chrome/browser/ui/webui/version_ui.cc#newcode47 chrome/browser/ui/webui/version_ui.cc:47: base::ThreadRestrictions::ScopedAllowIO allow_io; this scope can be a bit ...
8 years, 2 months ago (2012-09-25 18:45:19 UTC) #32
SteveT
Addressed one of your comments. Will commit shortly unless there is opposition. http://codereview.chromium.org/10916182/diff/7038/chrome/browser/ui/webui/version_ui.cc File chrome/browser/ui/webui/version_ui.cc ...
8 years, 2 months ago (2012-09-25 21:09:06 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10916182/29001
8 years, 2 months ago (2012-09-25 21:09:28 UTC) #34
commit-bot: I haz the power
8 years, 2 months ago (2012-09-25 21:09:43 UTC) #35
Presubmit check for 10916182-29001 failed and returned exit status 1.


Running presubmit commit checks ...

** Presubmit ERRORS **
Banned functions were used.
    chrome/browser/ui/webui/version_ui.cc:48:
      New code should not use ScopedAllowIO. Post a task to the blocking
      pool or the FILE thread instead.

Presubmit checks took 2.1s to calculate.

Powered by Google App Engine
This is Rietveld 408576698