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

Issue 2420123002: Remove dependency from SignInBrowsertest on tracing events watching (Closed)

Created:
4 years, 2 months ago by Primiano Tucci (use gerrit)
Modified:
4 years, 2 months ago
Reviewers:
xiyuan, stevenjb
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, oystein (OOO til 10th of July)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependency from SignInBrowsertest on tracing events watching LoginSigninTest.WebUIVisible is relying on tracing events watching for the only sake of figuring out when the signin screen has been shown. This is a hack and adds an unnecessary dependency on all the tracing machinery to achieve what could be simply achieved with WindowedNotificationObserver. More importantly, this is the only dependency on events watching left in the codebase. I am going to kill such feature entirely after this CL to prevent further situations like this. BUG= TEST=LoginSigninTest.WebUIVisible Committed: https://crrev.com/399cebdad3ff6cf4c6ac37e85db3c18233d9bdf9 Cr-Commit-Position: refs/heads/master@{#426198}

Patch Set 1 #

Total comments: 2

Patch Set 2 : use WindowedNotificationObserver #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -8 lines) Patch
M chrome/browser/chromeos/login/login_browsertest.cc View 1 3 chunks +4 lines, -8 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (14 generated)
Primiano Tucci (use gerrit)
4 years, 2 months ago (2016-10-14 17:04:13 UTC) #5
xiyuan
Agree that we should not depends on tracing for this. Think we can use this: ...
4 years, 2 months ago (2016-10-14 17:21:17 UTC) #6
stevenjb
https://codereview.chromium.org/2420123002/diff/1/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (right): https://codereview.chromium.org/2420123002/diff/1/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc#newcode117 chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:117: LAZY_INSTANCE_INITIALIZER; No trailing _ in file local variables. If ...
4 years, 2 months ago (2016-10-14 17:31:55 UTC) #9
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2420123002/diff/1/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (right): https://codereview.chromium.org/2420123002/diff/1/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc#newcode117 chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:117: LAZY_INSTANCE_INITIALIZER; On 2016/10/14 17:31:55, stevenjb wrote: > No trailing ...
4 years, 2 months ago (2016-10-14 17:42:56 UTC) #10
Primiano Tucci (use gerrit)
anyways, WindowedNotificationObserver seems to have worked. thanks
4 years, 2 months ago (2016-10-14 17:47:59 UTC) #12
xiyuan
lgtm Thanks.
4 years, 2 months ago (2016-10-14 17:58:52 UTC) #14
xiyuan
On 2016/10/14 17:58:52, xiyuan wrote: > lgtm > > Thanks. Oh, please update the CL ...
4 years, 2 months ago (2016-10-14 17:59:37 UTC) #15
stevenjb
On 2016/10/14 17:42:56, Primiano Tucci wrote: > https://codereview.chromium.org/2420123002/diff/1/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc > File chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (right): > > https://codereview.chromium.org/2420123002/diff/1/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc#newcode117 ...
4 years, 2 months ago (2016-10-14 18:05:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2420123002/20001
4 years, 2 months ago (2016-10-19 14:58:33 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-19 15:25:17 UTC) #23
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:08:36 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/399cebdad3ff6cf4c6ac37e85db3c18233d9bdf9
Cr-Commit-Position: refs/heads/master@{#426198}

Powered by Google App Engine
This is Rietveld 408576698