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

Unified Diff: chrome/browser/ui/browser.cc

Issue 21302005: Add CurrentProcessInfo::CreationTime() for Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« base/process/process_info_linux.cc ('K') | « base/process/process_info_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index a9835f42fadc907ab9edccfdc4f7e2f5f5c6f3d9..2abbcbbf638291ff80e8f79d94c25e1c46f651fb 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1211,9 +1211,8 @@ void Browser::OnWindowDidShow() {
return;
window_has_shown_ = true;
-// CurrentProcessInfo::CreationTime() is currently only implemented on Mac and
-// Windows.
-#if defined(OS_MACOSX) || defined(OS_WIN)
+// CurrentProcessInfo::CreationTime() is missing on some platforms.
+#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX)
// Measure the latency from startup till the first browser window becomes
// visible.
static bool is_first_browser_window = true;
@@ -1229,7 +1228,7 @@ void Browser::OnWindowDidShow() {
base::Time::Now() - *process_creation_time);
}
}
-#endif // defined(OS_MACOSX) || defined(OS_WIN)
+#endif // defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX)
// Nothing to do for non-tabbed windows.
if (!is_type_tabbed())
« base/process/process_info_linux.cc ('K') | « base/process/process_info_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698