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

Issue 2345933002: Break chrome_initial's dependence on //components/startup_metric_utils/browser:lib (Closed)

Created:
4 years, 3 months ago by grt (UTC plus 2)
Modified:
4 years, 3 months ago
Reviewers:
fdoray, brucedawson
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Break chrome_initial's dependence on //components/startup_metric_utils/browser:lib We can't have chrome.exe depending on browser code since doing so can unexpectedly cause the size of chrome.exe to bloat. This change accomplishes the breakage by passing the main exe entry TimeTicks through to chrome.dll directly by way of ChromeMain and ChromeMainDelegate rather than via an environment variable. BUG=647223 R=brucedawson@chromium.org Committed: https://crrev.com/a237cc46f9274d80df60813c10b69ec3067d7c2c Cr-Commit-Position: refs/heads/master@{#419881}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixes #

Patch Set 3 : more fixes #

Total comments: 17

Patch Set 4 : back in time #

Patch Set 5 : ticks everywhere #

Total comments: 4

Patch Set 6 : fdoray feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -70 lines) Patch
M chrome/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/chrome_exe_main_win.cc View 4 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/app/chrome_main.cc View 1 2 3 4 5 4 chunks +10 lines, -4 lines 0 comments Download
M chrome/app/chrome_main_delegate.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/app/main_dll_loader_win.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 1 comment Download
M chrome/app/main_dll_loader_win.cc View 1 2 3 4 5 4 chunks +6 lines, -3 lines 0 comments Download
M components/startup_metric_utils/browser/startup_metric_utils.h View 4 1 chunk +1 line, -1 line 1 comment Download
M components/startup_metric_utils/browser/startup_metric_utils.cc View 1 2 3 4 5 chunks +39 lines, -53 lines 0 comments Download

Messages

Total messages: 55 (35 generated)
grt (UTC plus 2)
This resolves the issue for Chromium builds for me, and I think is the right ...
4 years, 3 months ago (2016-09-16 09:38:27 UTC) #3
grt (UTC plus 2)
https://codereview.chromium.org/2345933002/diff/1/components/startup_metric_utils/browser/startup_metric_utils.cc File components/startup_metric_utils/browser/startup_metric_utils.cc (right): https://codereview.chromium.org/2345933002/diff/1/components/startup_metric_utils/browser/startup_metric_utils.cc#newcode10 components/startup_metric_utils/browser/startup_metric_utils.cc:10: #include <memory> On 2016/09/16 09:38:26, grt (UTC plus 2) ...
4 years, 3 months ago (2016-09-16 12:21:38 UTC) #13
brucedawson
This seems much cleaner, and safer. It also (fractionally) improves the linking times for chrome.exe, ...
4 years, 3 months ago (2016-09-16 21:38:39 UTC) #16
grt (UTC plus 2)
+gab to review startup_metrics_utils. Please see my question in https://codereview.chromium.org/1425263003/#msg58. I sorta think that this ...
4 years, 3 months ago (2016-09-17 09:30:05 UTC) #19
grt (UTC plus 2)
-gab +fdoray: Would you take a look at Patch Set 3? Thanks.
4 years, 3 months ago (2016-09-19 16:32:31 UTC) #25
fdoray
https://codereview.chromium.org/2345933002/diff/60001/chrome/app/chrome_exe_main_win.cc File chrome/app/chrome_exe_main_win.cc (right): https://codereview.chromium.org/2345933002/diff/60001/chrome/app/chrome_exe_main_win.cc#newcode227 chrome/app/chrome_exe_main_win.cc:227: const base::TimeTicks exe_entry_point_ticks = base::TimeTicks::Now(); On 2016/09/17 09:30:05, grt ...
4 years, 3 months ago (2016-09-19 17:03:28 UTC) #26
grt (UTC plus 2)
Thanks. PTAL. https://codereview.chromium.org/2345933002/diff/60001/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc (right): https://codereview.chromium.org/2345933002/diff/60001/chrome/app/chrome_main.cc#newcode27 chrome/app/chrome_main.cc:27: int64_t exe_entry_point_ticks); On 2016/09/19 17:03:28, fdoray wrote: ...
4 years, 3 months ago (2016-09-19 19:52:46 UTC) #28
brucedawson
lgtm
4 years, 3 months ago (2016-09-19 21:52:44 UTC) #32
fdoray
lgtm w/ comments https://codereview.chromium.org/2345933002/diff/100001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2345933002/diff/100001/chrome/app/chrome_main_delegate.cc#newcode440 chrome/app/chrome_main_delegate.cc:440: startup_metric_utils::RecordExeMainEntryPointTicks(exe_entry_point_ticks); The #if is there because ...
4 years, 3 months ago (2016-09-20 12:25:22 UTC) #33
grt (UTC plus 2)
Thanks for the great comments. https://codereview.chromium.org/2345933002/diff/100001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2345933002/diff/100001/chrome/app/chrome_main_delegate.cc#newcode440 chrome/app/chrome_main_delegate.cc:440: startup_metric_utils::RecordExeMainEntryPointTicks(exe_entry_point_ticks); On 2016/09/20 12:25:21, ...
4 years, 3 months ago (2016-09-20 19:20:27 UTC) #35
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/2345933002/140001
4 years, 3 months ago (2016-09-20 19:21:03 UTC) #38
fdoray
lgtm++
4 years, 3 months ago (2016-09-20 19:24:56 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/33746)
4 years, 3 months ago (2016-09-20 19:54:19 UTC) #41
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/2345933002/140001
4 years, 3 months ago (2016-09-20 20:09:20 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/296397)
4 years, 3 months ago (2016-09-20 20:16:02 UTC) #45
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/2345933002/140001
4 years, 3 months ago (2016-09-20 20:34:46 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/144866)
4 years, 3 months ago (2016-09-20 21:11:46 UTC) #49
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/2345933002/140001
4 years, 3 months ago (2016-09-20 22:00:40 UTC) #51
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 3 months ago (2016-09-20 22:56:42 UTC) #53
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 22:58:26 UTC) #55
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a237cc46f9274d80df60813c10b69ec3067d7c2c
Cr-Commit-Position: refs/heads/master@{#419881}

Powered by Google App Engine
This is Rietveld 408576698