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

Issue 10561009: Consolidate RecordBrowserStartupTime() into one location (Closed)

Created:
8 years, 6 months ago by jeremy
Modified:
8 years, 6 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Consolidate RecordBrowserStartupTime() into one location * Create a CurrentProcessInfo class as a central storage place for information about the current process. For now store the process creation time there. * Move RecordBrowserStartupTime() int browser_main.cc. The motivation for this is that we will want to add some more UMA measurements which require knowledge of the process startup time. BUG=None Test=Chrome should continue to compile on all platforms. TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142984

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make getter thread-safe #

Total comments: 4

Patch Set 3 : Fix win version. #

Patch Set 4 : Fix review comments - utilize Time::is_null() #

Total comments: 2

Patch Set 5 : Just say no to static destructors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -37 lines) Patch
M base/base.gypi View 1 2 chunks +4 lines, -1 line 0 comments Download
A base/process_info.h View 1 chunk +25 lines, -0 lines 0 comments Download
A base/process_info_mac.cc View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A base/process_info_win.cc View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main.cc View 4 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_mac.mm View 3 chunks +0 lines, -20 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.cc View 1 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/chrome_browser_main_x11.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jeremy
8 years, 6 months ago (2012-06-15 20:32:09 UTC) #1
Avi (use Gerrit)
lgtm
8 years, 6 months ago (2012-06-15 21:13:27 UTC) #2
jeremy
sky: owner review for chrome/browser mark: owner review for base/ Thanks!
8 years, 6 months ago (2012-06-15 21:15:30 UTC) #3
Mark Mentovai
https://chromiumcodereview.appspot.com/10561009/diff/1/base/process_info_mac.cc File base/process_info_mac.cc (right): https://chromiumcodereview.appspot.com/10561009/diff/1/base/process_info_mac.cc#newcode36 base/process_info_mac.cc:36: return &process_creation_time; Oh no! This is no good at ...
8 years, 6 months ago (2012-06-15 21:18:57 UTC) #4
jeremy
mark: Ready for another look.
8 years, 6 months ago (2012-06-19 15:40:34 UTC) #5
jeremy
https://chromiumcodereview.appspot.com/10561009/diff/6001/base/process_info_win.cc File base/process_info_win.cc (right): https://chromiumcodereview.appspot.com/10561009/diff/6001/base/process_info_win.cc#newcode22 base/process_info_win.cc:22: &ignore); Looks like this function can fail too, so ...
8 years, 6 months ago (2012-06-19 15:44:20 UTC) #6
Mark Mentovai
https://chromiumcodereview.appspot.com/10561009/diff/6001/base/process_info_mac.cc File base/process_info_mac.cc (right): https://chromiumcodereview.appspot.com/10561009/diff/6001/base/process_info_mac.cc#newcode31 base/process_info_mac.cc:31: *process_creation_time = Can you clean this up and get ...
8 years, 6 months ago (2012-06-19 15:47:08 UTC) #7
jeremy
All fixed, ready for another look.
8 years, 6 months ago (2012-06-19 16:03:59 UTC) #8
Mark Mentovai
https://chromiumcodereview.appspot.com/10561009/diff/19001/base/process_info_mac.cc File base/process_info_mac.cc (right): https://chromiumcodereview.appspot.com/10561009/diff/19001/base/process_info_mac.cc#newcode40 base/process_info_mac.cc:40: static Time process_creation_time = ProcessCreationTimeInternal(); Did “new Time()” and ...
8 years, 6 months ago (2012-06-19 16:08:00 UTC) #9
jeremy
All fixed, ready for another look
8 years, 6 months ago (2012-06-19 16:29:48 UTC) #10
Mark Mentovai
LGTM
8 years, 6 months ago (2012-06-19 16:32:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/10561009/7013
8 years, 6 months ago (2012-06-19 16:33:56 UTC) #12
commit-bot: I haz the power
8 years, 6 months ago (2012-06-19 17:43:38 UTC) #13
Change committed as 142984

Powered by Google App Engine
This is Rietveld 408576698