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

Issue 10698106: Switch about box to web ui on Windows. (Closed)

Created:
8 years, 5 months ago by MAD
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Daniel Erat
Visibility:
Public.

Description

Switch about box to web ui on Windows. This CLs adds proper support for update check on Windows so that we can turn on the WebUI support and eventually remove the code for about box in a modal dialog. BUG=115123 TEST=Make sure about works and properly checks for updates. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146738

Patch Set 1 : #

Total comments: 32

Patch Set 2 : Code review comments addressed. #

Patch Set 3 : Completed addressing code review comments... #

Total comments: 12

Patch Set 4 : OWNERs review comments addressed... #

Total comments: 4

Patch Set 5 : More OWNERs review comments addressed... #

Patch Set 6 : Removed useless thread checks. #

Patch Set 7 : Added GetForegroundWindow #

Total comments: 2

Patch Set 8 : With GoogleUpdate on Windows only. #

Total comments: 4

Patch Set 9 : Addressed James comments about comments... #

Patch Set 10 : Sync'd to ToT. #

Total comments: 2

Patch Set 11 : Better Getter for elevation parent HWND. #

Total comments: 2

Patch Set 12 : No more window_ data member. #

Patch Set 13 : Merged to ToT #

Patch Set 14 : Updating a Copyright header goof... #

Patch Set 15 : Fixed a merge issue where ChromeOS started using google_update.h again. #

Total comments: 2

Patch Set 16 : Better hack for reusing GOOGLE_UPDATE_ERROR_UPDATING #

Total comments: 1

Patch Set 17 : Using 0 instead #

Patch Set 18 : Adapted to install_util API change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -619 lines) Patch
D chrome/browser/google/google_update.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -147 lines 0 comments Download
M chrome/browser/google/google_update.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -413 lines 0 comments Download
A + chrome/browser/google/google_update_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +8 lines, -16 lines 0 comments Download
A + chrome/browser/google/google_update_win.cc View 1 2 3 4 5 6 7 8 9 chunks +13 lines, -23 lines 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/about_chrome_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/about_chrome_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/help/help_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/help/version_updater_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -3 lines 0 comments Download
A chrome/browser/ui/webui/help/version_updater_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +289 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 50 (0 generated)
MAD
This new code enables the usage of the Help page webui to show the "About ...
8 years, 5 months ago (2012-07-05 15:15:00 UTC) #1
Roger Tawa OOO till Jul 10th
Salut MAD, Some comments/questions below. http://codereview.chromium.org/10698106/diff/1014/chrome/browser/ui/webui/help/version_updater_win.cc File chrome/browser/ui/webui/help/version_updater_win.cc (right): http://codereview.chromium.org/10698106/diff/1014/chrome/browser/ui/webui/help/version_updater_win.cc#newcode43 chrome/browser/ui/webui/help/version_updater_win.cc:43: } This will find ...
8 years, 5 months ago (2012-07-05 16:13:22 UTC) #2
MAD
Thanks... How about this? BYE MAD... http://codereview.chromium.org/10698106/diff/1014/chrome/browser/ui/webui/help/version_updater_win.cc File chrome/browser/ui/webui/help/version_updater_win.cc (right): http://codereview.chromium.org/10698106/diff/1014/chrome/browser/ui/webui/help/version_updater_win.cc#newcode43 chrome/browser/ui/webui/help/version_updater_win.cc:43: } On 2012/07/05 ...
8 years, 5 months ago (2012-07-05 20:50:40 UTC) #3
Roger Tawa OOO till Jul 10th
lgtm
8 years, 5 months ago (2012-07-06 14:49:05 UTC) #4
MAD
Thanks Roger... Now I need OWNERS approval for browser/ui[/webui]... Ben, I think you were waiting ...
8 years, 5 months ago (2012-07-06 15:30:46 UTC) #5
James Hawkins
I believe you may have forgotten to 'git add' version_updater_basic.[cc,h]. http://r866-d34857b13568-rogerta.chromiumcodereview-hr.appspot.com/10698106/diff/13002/chrome/browser/ui/webui/help/version_updater_win.cc File chrome/browser/ui/webui/help/version_updater_win.cc (right): http://r866-d34857b13568-rogerta.chromiumcodereview-hr.appspot.com/10698106/diff/13002/chrome/browser/ui/webui/help/version_updater_win.cc#newcode32 ...
8 years, 5 months ago (2012-07-06 21:03:44 UTC) #6
MAD
Thanks James... How about this now? For the basic files, they're already there: http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/webui/help/version_updater_basic.cc?view=log Added ...
8 years, 5 months ago (2012-07-09 15:07:11 UTC) #7
Ben Goodger (Google)
Can you also remove all the old about box code. http://codereview.chromium.org/10698106/diff/15001/chrome/browser/ui/webui/help/version_updater_win.cc File chrome/browser/ui/webui/help/version_updater_win.cc (right): http://codereview.chromium.org/10698106/diff/15001/chrome/browser/ui/webui/help/version_updater_win.cc#newcode35 ...
8 years, 5 months ago (2012-07-09 15:44:57 UTC) #8
MAD
Thanks Ben... I removed the need for GetWidget()... As for removing the about box code, ...
8 years, 5 months ago (2012-07-09 18:48:58 UTC) #9
MAD
Added GetForegroundWindow() instead of NULL when calling CoCreateInstanceAsAdmin() because passing NULL didn't open the elevation ...
8 years, 5 months ago (2012-07-09 22:05:27 UTC) #10
Ben Goodger (Google)
http://codereview.chromium.org/10698106/diff/33001/chrome/browser/google/google_update.cc File chrome/browser/google/google_update.cc (right): http://codereview.chromium.org/10698106/diff/33001/chrome/browser/google/google_update.cc#newcode297 chrome/browser/google/google_update.cc:297: IID_IGoogleUpdate, GetForegroundWindow(), Will this always return the foreground-most window ...
8 years, 5 months ago (2012-07-09 22:28:01 UTC) #11
MAD
OK, I'll try the alternative that I initially thought wasn't worth the extra hoop in ...
8 years, 5 months ago (2012-07-10 00:20:08 UTC) #12
Ben Goodger (Google)
On 2012/07/10 00:20:08, MAD wrote: > Yes, but I think that's OK, it's just that ...
8 years, 5 months ago (2012-07-10 15:10:27 UTC) #13
MAD
OK, I'm working on a new version where the API now receives an HWND, so ...
8 years, 5 months ago (2012-07-10 17:44:41 UTC) #14
MAD
How about this now? And James, did I properly addressed/responded to your comments? This new ...
8 years, 5 months ago (2012-07-10 20:48:59 UTC) #15
James Hawkins
LGTM with nits. http://r879-cab51e0eb6a4-rogerta.chromiumcodereview-hr.appspot.com/10698106/diff/3014/chrome/browser/ui/webui/help/version_updater_win.cc File chrome/browser/ui/webui/help/version_updater_win.cc (right): http://r879-cab51e0eb6a4-rogerta.chromiumcodereview-hr.appspot.com/10698106/diff/3014/chrome/browser/ui/webui/help/version_updater_win.cc#newcode65 chrome/browser/ui/webui/help/version_updater_win.cc:65: // Make sure we have a ...
8 years, 5 months ago (2012-07-10 20:52:34 UTC) #16
MAD
Thanks James... Comments updated... Ben? Are you OK with the latest changes? Note that the ...
8 years, 5 months ago (2012-07-11 14:45:32 UTC) #17
Ben Goodger (Google)
https://chromiumcodereview.appspot.com/10698106/diff/1019/chrome/browser/ui/webui/help/version_updater_win.cc File chrome/browser/ui/webui/help/version_updater_win.cc (right): https://chromiumcodereview.appspot.com/10698106/diff/1019/chrome/browser/ui/webui/help/version_updater_win.cc#newcode153 chrome/browser/ui/webui/help/version_updater_win.cc:153: UpdateStatus(UPGRADE_CHECK_STARTED, GOOGLE_UPDATE_NO_ERROR, string16()); HWND parent = NULL; GetElevationParent(&parent); google_updater_->CheckForUpdater(false, ...
8 years, 5 months ago (2012-07-11 16:11:01 UTC) #18
Ben Goodger (Google)
> HWND parent = NULL; > GetElevationParent(&parent); > google_updater_->CheckForUpdater(false, parent); Or just google_updater_->CheckForUpdater(false, GetElevationParent());
8 years, 5 months ago (2012-07-11 16:11:24 UTC) #19
MAD
Agreed? Thanks! BYE MAD... http://codereview.chromium.org/10698106/diff/1019/chrome/browser/ui/webui/help/version_updater_win.cc File chrome/browser/ui/webui/help/version_updater_win.cc (right): http://codereview.chromium.org/10698106/diff/1019/chrome/browser/ui/webui/help/version_updater_win.cc#newcode153 chrome/browser/ui/webui/help/version_updater_win.cc:153: UpdateStatus(UPGRADE_CHECK_STARTED, GOOGLE_UPDATE_NO_ERROR, string16()); On 2012/07/11 ...
8 years, 5 months ago (2012-07-11 18:01:19 UTC) #20
MAD
Ping? This is my last day before two weeks of vacation... And then a week ...
8 years, 5 months ago (2012-07-13 13:08:16 UTC) #21
Ben Goodger (Google)
http://codereview.chromium.org/10698106/diff/13004/chrome/browser/ui/webui/help/version_updater_win.cc File chrome/browser/ui/webui/help/version_updater_win.cc (right): http://codereview.chromium.org/10698106/diff/13004/chrome/browser/ui/webui/help/version_updater_win.cc#newcode280 chrome/browser/ui/webui/help/version_updater_win.cc:280: if (window_ != NULL) it seems like you don't ...
8 years, 5 months ago (2012-07-13 15:04:55 UTC) #22
MAD
Thanks! Good point, addressed... Anything else? BYE MAD... http://codereview.chromium.org/10698106/diff/13004/chrome/browser/ui/webui/help/version_updater_win.cc File chrome/browser/ui/webui/help/version_updater_win.cc (right): http://codereview.chromium.org/10698106/diff/13004/chrome/browser/ui/webui/help/version_updater_win.cc#newcode280 chrome/browser/ui/webui/help/version_updater_win.cc:280: if ...
8 years, 5 months ago (2012-07-13 15:34:17 UTC) #23
Ben Goodger (Google)
lgtm
8 years, 5 months ago (2012-07-13 15:38:37 UTC) #24
MAD
On 2012/07/13 15:38:37, Ben Goodger (Google) wrote: > lgtm Cool, thanks... CQ'ing! BYE MAD...
8 years, 5 months ago (2012-07-13 15:44:42 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/10698106/13010
8 years, 5 months ago (2012-07-13 15:46:10 UTC) #26
commit-bot: I haz the power
Failed to apply patch for chrome/browser/google/google_update_win.h: While running patch -p1 --forward --force; patching file chrome/browser/google/google_update_win.h ...
8 years, 5 months ago (2012-07-13 15:46:15 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/10698106/11018
8 years, 5 months ago (2012-07-13 16:07:37 UTC) #28
commit-bot: I haz the power
Presubmit check for 10698106-11018 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 5 months ago (2012-07-13 16:07:41 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/10698106/2037
8 years, 5 months ago (2012-07-13 16:12:31 UTC) #30
commit-bot: I haz the power
Try job failure for 10698106-2037 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-13 17:09:09 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/10698106/2037
8 years, 5 months ago (2012-07-13 17:19:34 UTC) #32
commit-bot: I haz the power
Try job failure for 10698106-2037 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-13 17:42:17 UTC) #33
MAD
Darn... I renamed google_update.* to google_update_win.* because it's only used on windows, but a new ...
8 years, 5 months ago (2012-07-13 18:49:17 UTC) #34
MAD
I just noticed there is a TODO above this line... Maybe having a temporary solution ...
8 years, 5 months ago (2012-07-13 18:53:07 UTC) #35
mad-corp
Oups... Adding proper committer who made the change now... * derat@chromium.org* For some reason, I ...
8 years, 5 months ago (2012-07-13 18:58:54 UTC) #36
MAD
Here's the change James, is this OK with you? CC+ derat@ Thanks! BYE MAD...
8 years, 5 months ago (2012-07-13 18:59:40 UTC) #37
MAD
Take 3... with the proper .org (as opposed to .orgm) now... :-/ On Fri, Jul ...
8 years, 5 months ago (2012-07-13 19:05:02 UTC) #38
Daniel Erat
https://chromiumcodereview.appspot.com/10698106/diff/12009/chrome/browser/ui/webui/help/version_updater_chromeos.cc File chrome/browser/ui/webui/help/version_updater_chromeos.cc (right): https://chromiumcodereview.appspot.com/10698106/diff/12009/chrome/browser/ui/webui/help/version_updater_chromeos.cc#newcode103 chrome/browser/ui/webui/help/version_updater_chromeos.cc:103: message = l10n_util::GetStringFUTF16Int(IDS_UPGRADE_ERROR, 7); this is fine with me, ...
8 years, 5 months ago (2012-07-13 19:27:56 UTC) #39
MAD
OK, how about this instead? Thanks! BYE MAD... http://codereview.chromium.org/10698106/diff/12009/chrome/browser/ui/webui/help/version_updater_chromeos.cc File chrome/browser/ui/webui/help/version_updater_chromeos.cc (right): http://codereview.chromium.org/10698106/diff/12009/chrome/browser/ui/webui/help/version_updater_chromeos.cc#newcode103 chrome/browser/ui/webui/help/version_updater_chromeos.cc:103: message ...
8 years, 5 months ago (2012-07-13 19:36:59 UTC) #40
Daniel Erat
http://codereview.chromium.org/10698106/diff/32/chrome/browser/ui/webui/help/version_updater_chromeos.cc File chrome/browser/ui/webui/help/version_updater_chromeos.cc (right): http://codereview.chromium.org/10698106/diff/32/chrome/browser/ui/webui/help/version_updater_chromeos.cc#newcode27 chrome/browser/ui/webui/help/version_updater_chromeos.cc:27: #define GOOGLE_UPDATE_ERROR_UPDATING 7 nit: const int in an anon ...
8 years, 5 months ago (2012-07-13 19:45:54 UTC) #41
MAD
Agreed. Makes more sense to me too. I thought you needed to use this specific ...
8 years, 5 months ago (2012-07-13 19:51:40 UTC) #42
MAD
Like this?...
8 years, 5 months ago (2012-07-13 20:05:30 UTC) #43
Daniel Erat
LGTM for version_updater_chromeos.cc. Thanks!
8 years, 5 months ago (2012-07-13 20:06:33 UTC) #44
MAD
On 2012/07/13 20:06:33, Daniel Erat wrote: > LGTM for version_updater_chromeos.cc. Thanks! Thank YOU... CQ'ing again... ...
8 years, 5 months ago (2012-07-13 20:07:31 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/10698106/6039
8 years, 5 months ago (2012-07-13 20:09:44 UTC) #46
commit-bot: I haz the power
Try job failure for 10698106-6039 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-13 21:07:09 UTC) #47
MAD
Anybody wants to double check the changes I needed to do to adapt to an ...
8 years, 5 months ago (2012-07-13 22:39:16 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/10698106/49001
8 years, 5 months ago (2012-07-14 14:33:23 UTC) #49
commit-bot: I haz the power
8 years, 5 months ago (2012-07-14 15:49:43 UTC) #50
Change committed as 146738

Powered by Google App Engine
This is Rietveld 408576698