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

Issue 12096064: Automatic Win8 default browser registration for the ash unittests. (Closed)

Created:
7 years, 10 months ago by robertshield
Modified:
7 years, 10 months ago
Reviewers:
sky, grt (UTC plus 2)
CC:
chromium-reviews, cpu_(ooo_6.6-7.5)
Visibility:
Public.

Description

Automatic Win8 default browser registration for the ash unittests. Win8 default browser registration code is extracted into a fairly minimal .rgs script with a helper app that is then invoked by the ash unittests. A full ICommandExecuteImpl implementation turns out to not be needed as the ash tests activate the registered default browser directly by AppUserModelId which avoids the need for ICommandExecuteImpl and the other stuff in the production delegate_execute.exe. BUG=154081 TEST=ash_unittests, eventually. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182258

Patch Set 1 #

Patch Set 2 : Working registration. #

Patch Set 3 : Cleanup. #

Patch Set 4 : Simplify reg code, remove unneeded delegate_execute. #

Patch Set 5 : gyp fixes #

Patch Set 6 : More gyp fixes #

Patch Set 7 : Cleanup. #

Total comments: 26

Patch Set 8 : Dear Greg. #

Total comments: 14

Patch Set 9 : Dear Greg the second. #

Total comments: 12

Patch Set 10 : Dear Greg #

Total comments: 1

Patch Set 11 : CHECK->ASSERT_TRUE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -49 lines) Patch
M ash/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M ash/test/test_metro_viewer_process_host.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -9 lines 0 comments Download
M ash/test/test_metro_viewer_process_host.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -24 lines 0 comments Download
M ash/test/test_suite.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +20 lines, -0 lines 0 comments Download
M win8/delegate_execute/delegate_execute.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A win8/test/metro_registration_helper.h View 1 2 3 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download
A win8/test/metro_registration_helper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +78 lines, -0 lines 0 comments Download
A win8/test/test_registrar.cc View 1 2 3 4 5 6 7 8 9 1 chunk +141 lines, -0 lines 0 comments Download
A + win8/test/test_registrar.rc View 1 2 3 2 chunks +3 lines, -13 lines 0 comments Download
A win8/test/test_registrar.rgs View 1 2 3 1 chunk +99 lines, -0 lines 0 comments Download
A win8/test/test_registrar_constants.h View 1 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download
A win8/test/test_registrar_constants.cc View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
A + win8/test/test_registrar_resource.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M win8/win8.gyp View 1 2 3 4 5 6 7 8 2 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
robertshield
7 years, 10 months ago (2013-02-12 14:55:21 UTC) #1
grt (UTC plus 2)
looks really good. mainly comment comments. i'll make another pass after you factor in these ...
7 years, 10 months ago (2013-02-12 15:37:43 UTC) #2
robertshield
Thanks! PTAL https://codereview.chromium.org/12096064/diff/25001/ash/test/test_metro_viewer_process_host.cc File ash/test/test_metro_viewer_process_host.cc (right): https://codereview.chromium.org/12096064/diff/25001/ash/test/test_metro_viewer_process_host.cc#newcode71 ash/test/test_metro_viewer_process_host.cc:71: // at the moment, so a run-time ...
7 years, 10 months ago (2013-02-12 16:57:08 UTC) #3
grt (UTC plus 2)
https://codereview.chromium.org/12096064/diff/25020/ash/test/test_suite.cc File ash/test/test_suite.cc (right): https://codereview.chromium.org/12096064/diff/25020/ash/test/test_suite.cc#newcode46 ash/test/test_suite.cc:46: HRESULT result = S_OK; remove https://codereview.chromium.org/12096064/diff/25020/win8/test/metro_registration_helper.cc File win8/test/metro_registration_helper.cc (right): ...
7 years, 10 months ago (2013-02-12 18:17:27 UTC) #4
robertshield
thanks, ptal https://codereview.chromium.org/12096064/diff/25020/ash/test/test_suite.cc File ash/test/test_suite.cc (right): https://codereview.chromium.org/12096064/diff/25020/ash/test/test_suite.cc#newcode46 ash/test/test_suite.cc:46: HRESULT result = S_OK; On 2013/02/12 18:17:27, ...
7 years, 10 months ago (2013-02-12 18:35:34 UTC) #5
grt (UTC plus 2)
lgtm w/ nits https://codereview.chromium.org/12096064/diff/19012/win8/test/metro_registration_helper.cc File win8/test/metro_registration_helper.cc (right): https://codereview.chromium.org/12096064/diff/19012/win8/test/metro_registration_helper.cc#newcode71 win8/test/metro_registration_helper.cc:71: } PLOG failure to launch? https://codereview.chromium.org/12096064/diff/19012/win8/test/test_registrar.cc ...
7 years, 10 months ago (2013-02-12 18:55:54 UTC) #6
robertshield
Thanks! https://codereview.chromium.org/12096064/diff/19012/win8/test/metro_registration_helper.cc File win8/test/metro_registration_helper.cc (right): https://codereview.chromium.org/12096064/diff/19012/win8/test/metro_registration_helper.cc#newcode71 win8/test/metro_registration_helper.cc:71: } On 2013/02/12 18:55:54, grt wrote: > PLOG ...
7 years, 10 months ago (2013-02-12 20:53:09 UTC) #7
robertshield
+Scott for OWNERS
7 years, 10 months ago (2013-02-12 20:54:12 UTC) #8
sky
LGTM https://codereview.chromium.org/12096064/diff/18005/ash/test/test_suite.cc File ash/test/test_suite.cc (right): https://codereview.chromium.org/12096064/diff/18005/ash/test/test_suite.cc#newcode39 ash/test/test_suite.cc:39: CHECK(win8::RegisterTestDefaultBrowser( ASSERT
7 years, 10 months ago (2013-02-12 22:31:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/12096064/32001
7 years, 10 months ago (2013-02-13 15:18:43 UTC) #10
commit-bot: I haz the power
Change committed as 182258
7 years, 10 months ago (2013-02-13 18:25:44 UTC) #11
Dirk Pranke
On 2013/02/13 18:25:44, I haz the power (commit-bot) wrote: > Change committed as 182258 This ...
7 years, 10 months ago (2013-02-15 20:51:31 UTC) #12
robertshield
7 years, 10 months ago (2013-02-15 22:18:17 UTC) #13
On Fri, Feb 15, 2013 at 3:51 PM, <dpranke@chromium.org> wrote:

> On 2013/02/13 18:25:44, I haz the power (commit-bot) wrote:
>
>> Change committed as 182258
>>
>
> This change breaks the webkit.org win build, by adding a gyp dependency
> from
> win8.gyp -> chrome.gyp (which we don't check out on those bots). The full
> dependency chain is webkit_support -> printing -> win8 -> chrome :(.
>
> I've posted a workaround in
https://codereview.chromium.**org/12207186/<https://codereview.chromium.org/1...
I'm
> not sure what you'll want to do as a long-term fix. Seems bad that win8
> would
> depend on chrome?
>

Ugh, darn. Thanks for the workaround. The long term plan is to have
win8_test provide its own metro viewer process and to not use Chrome.

The workaround looks great, though I'd rather replace it with a real win8
viewer process which I guess I will have to do a bit sooner than I'd hoped.
Oh well.

Thanks again for the fix! :)



>
>
https://chromiumcodereview.**appspot.com/12096064/<https://chromiumcodereview...
>

Powered by Google App Engine
This is Rietveld 408576698