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

Issue 584213002: Only do aggressive metro viewer termination in tests (Closed)

Created:
6 years, 3 months ago by scottmg
Modified:
6 years, 3 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, Shrikant Kelkar, cpu_(ooo_6.6-7.5)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Only do aggressive metro viewer termination in tests The previous patch https://codereview.chromium.org/584513004 ran on all metro viewer shutdowns, which would lead to Alt-F4 not being processed which means that the proper metro process shutdown wouldn't happen, potentially leaving the "ghost" icon. Instead, only do the aggressive termination from the process_host side and only when running test binaries (where we're concerned about having the viewer be able to run again immediately.) R=ananta@chromium.org BUG=411147, 416356 Committed: https://crrev.com/3c19343e8829c302e8ff9421deea89b50dfb0d27 Cr-Commit-Position: refs/heads/master@{#295995}

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 7

Patch Set 3 : just terminate #

Patch Set 4 : . #

Patch Set 5 : move to test only location #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 1

Patch Set 8 : ., #

Patch Set 9 : . #

Patch Set 10 : simplify #

Total comments: 1

Patch Set 11 : include #

Patch Set 12 : . #

Total comments: 2

Patch Set 13 : add wfso #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -203 lines) Patch
M ash/test/ash_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -10 lines 0 comments Download
M ash/test/test_metro_viewer_process_host.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ash/test/test_metro_viewer_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +16 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M base/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
D base/test/test_process_killer_win.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -19 lines 0 comments Download
D base/test/test_process_killer_win.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -167 lines 0 comments Download
M win8/metro_driver/chrome_app_view_ash.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
scottmg
6 years, 3 months ago (2014-09-19 19:32:33 UTC) #1
ananta
https://codereview.chromium.org/584213002/diff/20001/win8/viewer/metro_viewer_process_host.cc File win8/viewer/metro_viewer_process_host.cc (right): https://codereview.chromium.org/584213002/diff/20001/win8/viewer/metro_viewer_process_host.cc#newcode82 win8/viewer/metro_viewer_process_host.cc:82: ::WaitForSingleObject(viewer_process, 100); Just TerminateProcess here?. The viewer has no ...
6 years, 3 months ago (2014-09-19 19:36:57 UTC) #2
scottmg
https://codereview.chromium.org/584213002/diff/20001/win8/viewer/metro_viewer_process_host.cc File win8/viewer/metro_viewer_process_host.cc (right): https://codereview.chromium.org/584213002/diff/20001/win8/viewer/metro_viewer_process_host.cc#newcode82 win8/viewer/metro_viewer_process_host.cc:82: ::WaitForSingleObject(viewer_process, 100); On 2014/09/19 19:36:57, ananta wrote: > Just ...
6 years, 3 months ago (2014-09-19 19:41:19 UTC) #3
Shrikant Kelkar
https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc#newcode187 ash/test/ash_test_base.cc:187: kViewerProcessArgument); We already have some cleanup logic here, wondering ...
6 years, 3 months ago (2014-09-19 19:42:28 UTC) #5
scottmg
https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc#newcode187 ash/test/ash_test_base.cc:187: kViewerProcessArgument); On 2014/09/19 19:42:28, Shrikant Kelkar wrote: > We ...
6 years, 3 months ago (2014-09-19 19:44:15 UTC) #6
Shrikant Kelkar
https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc#newcode187 ash/test/ash_test_base.cc:187: kViewerProcessArgument); On 2014/09/19 19:44:15, scottmg wrote: > On 2014/09/19 ...
6 years, 3 months ago (2014-09-19 19:49:08 UTC) #7
ananta
https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc#newcode185 ash/test/ash_test_base.cc:185: const wchar_t kViewerProcessArgument[] = L"DefaultBrowserServer"; I think we can ...
6 years, 3 months ago (2014-09-19 19:55:16 UTC) #8
Shrikant Kelkar
https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/584213002/diff/20001/ash/test/ash_test_base.cc#newcode185 ash/test/ash_test_base.cc:185: const wchar_t kViewerProcessArgument[] = L"DefaultBrowserServer"; On 2014/09/19 19:55:16, ananta ...
6 years, 3 months ago (2014-09-19 20:03:12 UTC) #9
scottmg
PTAL, moved to TestMetroViewerProcessHost so that it's clear it's test-only, and removed the kill-all. https://codereview.chromium.org/584213002/diff/180001/base/test/test_process_killer_win.h ...
6 years, 3 months ago (2014-09-19 21:23:24 UTC) #10
scottmg
This approach would appear to have the drawback of "not working". (I think only on ...
6 years, 3 months ago (2014-09-19 23:22:48 UTC) #11
scottmg
Oops, was just that there's no viewer on win7 (of course). Seem OK?
6 years, 3 months ago (2014-09-20 00:26:54 UTC) #12
ananta
LGTM % nit https://codereview.chromium.org/584213002/diff/120001/win8/viewer/metro_viewer_process_host.cc File win8/viewer/metro_viewer_process_host.cc (right): https://codereview.chromium.org/584213002/diff/120001/win8/viewer/metro_viewer_process_host.cc#newcode82 win8/viewer/metro_viewer_process_host.cc:82: &viewer_process); You need to add PROCESS_TERMINATE ...
6 years, 3 months ago (2014-09-20 00:32:54 UTC) #13
scottmg
https://codereview.chromium.org/584213002/diff/220001/ash/test/test_metro_viewer_process_host.cc File ash/test/test_metro_viewer_process_host.cc (right): https://codereview.chromium.org/584213002/diff/220001/ash/test/test_metro_viewer_process_host.cc#newcode35 ash/test/test_metro_viewer_process_host.cc:35: ::CloseHandle(viewer_process); On 2014/09/20 00:32:54, ananta wrote: > Please add ...
6 years, 3 months ago (2014-09-20 02:12:50 UTC) #14
scottmg
OWNERS: +sky for ash/test/* +brettw for base/* (all deletions)
6 years, 3 months ago (2014-09-20 02:14:03 UTC) #16
brettw
base lgtm
6 years, 3 months ago (2014-09-20 05:38:16 UTC) #17
sky
LGTM
6 years, 3 months ago (2014-09-22 16:10:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/584213002/240001
6 years, 3 months ago (2014-09-22 16:27:28 UTC) #20
commit-bot: I haz the power
Committed patchset #13 (id:240001) as 9a584d759473169b2ecac655ec8fbaf205dda9ed
6 years, 3 months ago (2014-09-22 16:51:09 UTC) #21
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 16:51:48 UTC) #22
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/3c19343e8829c302e8ff9421deea89b50dfb0d27
Cr-Commit-Position: refs/heads/master@{#295995}

Powered by Google App Engine
This is Rietveld 408576698