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

Issue 1169503002: Do not record startup metrics when non-browser UI was displayed (Closed)

Created:
5 years, 6 months ago by tiany
Modified:
5 years, 5 months ago
Reviewers:
gab, Nico, huangs
CC:
chromium-reviews, tfarina, asvitkine+watch_chromium.org, Alexei Svitkine (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not record startup metrics when non-browser UI was displayed. Two things added: 1) Call SetNonBrowserUIDisplayed() in the ShowMessageBox implementation. 2) Break and return if non-browser UI was displayed when recording either of the two metrics: Startup.FirstWebContents.NonEmptyPaint, Startup.FirstWebContents.MainFrameLoad BUG=495017 Committed: https://crrev.com/aa83a9c2f4d3a84bac667be7f17019f878002c3c Cr-Commit-Position: refs/heads/master@{#338048}

Patch Set 1 #

Patch Set 2 : Work in progress #

Patch Set 3 : Finished test #

Patch Set 4 : Fixed formats and a bug #

Patch Set 5 : Run gyp_chromium.py to sync build dependencies #

Patch Set 6 : Changed platform specific code location #

Patch Set 7 : Added macro to completely disable the test on chromeos #

Total comments: 17

Patch Set 8 : Addressed comments #

Total comments: 14

Patch Set 9 : Merge #

Patch Set 10 : Addressed second-round comments #

Patch Set 11 : Switched to use methods in histogram_tester #

Patch Set 12 : Use base::StartsWithASCII #

Patch Set 13 : Merge #

Total comments: 1

Patch Set 14 : Removed unnecessary include statements, override SetUpInProcessBrowserTestFixture instead of Setup. #

Total comments: 17

Patch Set 15 : Addressed comments. #

Total comments: 2

Patch Set 16 : Fixed wording. #

Total comments: 4

Patch Set 17 : Removed PRE tests #

Total comments: 17

Patch Set 18 : Addressed comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -1 line) Patch
M chrome/browser/metrics/first_web_contents_profiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/simple_message_box_mac.mm View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/profile_error_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +99 lines, -0 lines 2 comments Download
A chrome/browser/ui/simple_message_box_internal.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/ui/simple_message_box_internal.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/simple_message_box_views.cc View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -1 line 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 +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 53 (16 generated)
tiany
PTAL.
5 years, 6 months ago (2015-06-09 14:47:27 UTC) #3
gab
First round :-), looks very good, lots of comments but this is normal for a ...
5 years, 6 months ago (2015-06-09 15:52:29 UTC) #4
tiany
Hi Gab, So after I built chrome with debug mode on, I couldn't get the ...
5 years, 6 months ago (2015-06-10 23:06:28 UTC) #5
tiany
PTAL.
5 years, 6 months ago (2015-06-11 14:40:47 UTC) #7
tiany
PTAL.
5 years, 6 months ago (2015-06-11 14:41:10 UTC) #9
gab
lg, last couple of nits. @asvitkine, see question below. Thanks, Gab https://codereview.chromium.org/1169503002/diff/160001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): ...
5 years, 6 months ago (2015-06-12 18:12:38 UTC) #10
huangs
Nits. https://codereview.chromium.org/1169503002/diff/160001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/160001/chrome/browser/ui/profile_error_browsertest.cc#newcode1 chrome/browser/ui/profile_error_browsertest.cc:1: // Copyright 2014 The Chromium Authors. All rights ...
5 years, 6 months ago (2015-06-12 18:16:14 UTC) #11
Alexei Svitkine (slow)
https://codereview.chromium.org/1169503002/diff/160001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/160001/chrome/browser/ui/profile_error_browsertest.cc#newcode36 chrome/browser/ui/profile_error_browsertest.cc:36: return (samples->TotalCount() > 0); On 2015/06/12 18:12:38, gab wrote: ...
5 years, 6 months ago (2015-06-15 20:06:40 UTC) #13
tiany
Addressed all the comments. PTAL. https://codereview.chromium.org/1169503002/diff/160001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/160001/chrome/browser/ui/profile_error_browsertest.cc#newcode1 chrome/browser/ui/profile_error_browsertest.cc:1: // Copyright 2014 The ...
5 years, 6 months ago (2015-06-16 14:37:19 UTC) #14
huangs
Should update #includes. https://codereview.chromium.org/1169503002/diff/260001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/260001/chrome/browser/ui/profile_error_browsertest.cc#newcode7 chrome/browser/ui/profile_error_browsertest.cc:7: #include "base/files/file_path.h" Remove unused #includes. I ...
5 years, 6 months ago (2015-06-16 17:50:52 UTC) #15
tiany
On 2015/06/16 17:50:52, huangs wrote: > Should update #includes. > > https://codereview.chromium.org/1169503002/diff/260001/chrome/browser/ui/profile_error_browsertest.cc > File chrome/browser/ui/profile_error_browsertest.cc ...
5 years, 6 months ago (2015-06-16 18:57:33 UTC) #16
gab
Down to last nits, one more round and we can send it to sky :-), ...
5 years, 6 months ago (2015-06-16 19:55:34 UTC) #17
tiany
Hi, I've addressed the previous round of comments. PTAL. https://codereview.chromium.org/1169503002/diff/280001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/280001/chrome/browser/ui/profile_error_browsertest.cc#newcode28 chrome/browser/ui/profile_error_browsertest.cc:28: ...
5 years, 6 months ago (2015-06-23 18:36:35 UTC) #19
gab
lgtm w/ two wording nits. Thanks, Gab https://codereview.chromium.org/1169503002/diff/300001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/300001/chrome/browser/ui/profile_error_browsertest.cc#newcode21 chrome/browser/ui/profile_error_browsertest.cc:21: class ProfileErrorBrowserTest ...
5 years, 6 months ago (2015-06-25 14:38:23 UTC) #20
tiany
Fixed the wording, added the owner. PTAL. sky@: as discussed over email a couple of ...
5 years, 5 months ago (2015-06-30 19:36:05 UTC) #22
sky
https://codereview.chromium.org/1169503002/diff/320001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/320001/chrome/browser/ui/profile_error_browsertest.cc#newcode87 chrome/browser/ui/profile_error_browsertest.cc:87: // Nothing to do, the purpose of this PRE ...
5 years, 5 months ago (2015-06-30 22:17:00 UTC) #23
tiany
https://codereview.chromium.org/1169503002/diff/320001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/320001/chrome/browser/ui/profile_error_browsertest.cc#newcode87 chrome/browser/ui/profile_error_browsertest.cc:87: // Nothing to do, the purpose of this PRE ...
5 years, 5 months ago (2015-06-30 22:33:50 UTC) #24
sky
https://codereview.chromium.org/1169503002/diff/320001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/320001/chrome/browser/ui/profile_error_browsertest.cc#newcode87 chrome/browser/ui/profile_error_browsertest.cc:87: // Nothing to do, the purpose of this PRE ...
5 years, 5 months ago (2015-06-30 22:38:57 UTC) #25
gab
https://codereview.chromium.org/1169503002/diff/320001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/320001/chrome/browser/ui/profile_error_browsertest.cc#newcode87 chrome/browser/ui/profile_error_browsertest.cc:87: // Nothing to do, the purpose of this PRE ...
5 years, 5 months ago (2015-07-01 00:35:34 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1169503002/340001
5 years, 5 months ago (2015-07-02 17:08:17 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-02 17:45:50 UTC) #31
tiany
Hi all, I removed the PRE tests and create either an empty or a invalid ...
5 years, 5 months ago (2015-07-02 18:40:08 UTC) #32
gab
Thanks, couple nits on latest modifications. Cheers, Gab https://codereview.chromium.org/1169503002/diff/340001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/340001/chrome/browser/ui/profile_error_browsertest.cc#newcode32 chrome/browser/ui/profile_error_browsertest.cc:32: return ...
5 years, 5 months ago (2015-07-06 15:52:54 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1169503002/360001
5 years, 5 months ago (2015-07-06 20:14:35 UTC) #36
gab
lgtm, thanks
5 years, 5 months ago (2015-07-06 21:00:22 UTC) #37
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-06 21:02:06 UTC) #39
tiany
Hi all, I addressed comments from gab@, and added thakis@ as a reviewer since sky@ ...
5 years, 5 months ago (2015-07-06 21:49:55 UTC) #42
gab
On 2015/07/06 21:49:55, tiany wrote: > Hi all, > > I addressed comments from gab@, ...
5 years, 5 months ago (2015-07-08 18:37:22 UTC) #43
Nico
lgtm with comment https://codereview.chromium.org/1169503002/diff/360001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/360001/chrome/browser/ui/profile_error_browsertest.cc#newcode89 chrome/browser/ui/profile_error_browsertest.cc:89: } else { Since over 50% ...
5 years, 5 months ago (2015-07-08 18:49:06 UTC) #44
gab
https://codereview.chromium.org/1169503002/diff/360001/chrome/browser/ui/profile_error_browsertest.cc File chrome/browser/ui/profile_error_browsertest.cc (right): https://codereview.chromium.org/1169503002/diff/360001/chrome/browser/ui/profile_error_browsertest.cc#newcode89 chrome/browser/ui/profile_error_browsertest.cc:89: } else { On 2015/07/08 18:49:06, Nico wrote: > ...
5 years, 5 months ago (2015-07-08 18:55:02 UTC) #45
Nico
Yeah but that could just be a function call in each test. Up to you ...
5 years, 5 months ago (2015-07-08 19:06:50 UTC) #46
gab
On 2015/07/08 19:06:50, Nico wrote: > Yeah but that could just be a function call ...
5 years, 5 months ago (2015-07-08 19:20:22 UTC) #47
gab
On 2015/07/08 19:20:22, gab wrote: > On 2015/07/08 19:06:50, Nico wrote: > > Yeah but ...
5 years, 5 months ago (2015-07-09 14:56:01 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1169503002/360001
5 years, 5 months ago (2015-07-09 14:57:43 UTC) #50
commit-bot: I haz the power
Committed patchset #18 (id:360001)
5 years, 5 months ago (2015-07-09 15:42:24 UTC) #51
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/aa83a9c2f4d3a84bac667be7f17019f878002c3c Cr-Commit-Position: refs/heads/master@{#338048}
5 years, 5 months ago (2015-07-09 15:43:13 UTC) #52
Nico
5 years, 5 months ago (2015-07-09 15:48:51 UTC) #53
Message was sent while issue was closed.
Yup, that's what I meant :-)
On Jul 9, 2015 7:56 AM, <gab@chromium.org> wrote:

> On 2015/07/08 19:20:22, gab wrote:
>
>> On 2015/07/08 19:06:50, Nico wrote:
>> > Yeah but that could just be a function call in each test. Up to you but
>> I
>> > find the _P almost always useless and more confusing than without.
>>
>
>  It couldn't be a function call in each test because it's in
>> SetUpUserDataDirectory() which occurs much before the test's body is
>> executed.
>>
>
>  The only way would be to use a different fixture for both tests which I
>> think
>> would result in more code.
>>
>
>  As-is I think we have the least amount of code which (1) tests corruption
>> as
>>
> we
>
>> want and (2) confirms that whatever we are expecting doesn't just blindly
>>
> occur
>
>> when the scenario isn't setup for it (i.e. that the test in (1) is
>> actually
>> testing something).
>>
>
> Assuming silence is the emphasis of your prior "Up to you", we will land
> as-is,
> happy to do a follow-up CL if you feel strongly otherwise.
>
> Thanks,
> Gab
>
> https://codereview.chromium.org/1169503002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698