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

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

Issue 21302005: Add CurrentProcessInfo::CreationTime() for Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac Created 7 years, 4 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
« no previous file with comments | « chrome/browser/chrome_process_finder_win.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_service.cc
diff --git a/chrome/browser/ui/app_list/app_list_service.cc b/chrome/browser/ui/app_list/app_list_service.cc
index 8120aaeedad289c2d2175477d4d3a4f24bf0d326..5a5f9331883747652241c54aef9f6ea7f6732558 100644
--- a/chrome/browser/ui/app_list/app_list_service.cc
+++ b/chrome/browser/ui/app_list/app_list_service.cc
@@ -47,11 +47,12 @@ void AppListService::RecordShowTimings(const CommandLine& command_line) {
else
UMA_HISTOGRAM_LONG_TIMES("Startup.ShowAppListWarmStart", elapsed);
} else {
- // base::CurrentProcessInfo::CreationTime() is only defined on win/mac.
-#if defined(OS_WIN) || defined(OS_MACOSX)
+ // base::CurrentProcessInfo::CreationTime() is only defined on some
+ // platforms.
+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
UMA_HISTOGRAM_LONG_TIMES(
"Startup.ShowAppListColdStart",
- base::Time::Now() - *base::CurrentProcessInfo::CreationTime());
+ base::Time::Now() - base::CurrentProcessInfo::CreationTime());
#endif
}
}
« no previous file with comments | « chrome/browser/chrome_process_finder_win.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698