Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index 4fb445330ad0c6fdf0991e928acee0aa2f0229d0..d6a6b38ac7a6d4f69fe9c825c7ab941bd3732700 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -430,10 +430,11 @@ bool ProcessSingletonNotificationCallback( |
std::string start_time_string = |
command_line.GetSwitchValueASCII(switches::kOriginalProcessStartTime); |
int64 remote_start_time; |
- base::StringToInt64(start_time_string, &remote_start_time); |
- UMA_HISTOGRAM_LONG_TIMES( |
- "Startup.WarmStartTimeFromRemoteProcessStart", |
- base::Time::Now() - base::Time::FromInternalValue(remote_start_time)); |
+ if (base::StringToInt64(start_time_string, &remote_start_time)) { |
+ UMA_HISTOGRAM_LONG_TIMES( |
+ "Startup.WarmStartTimeFromRemoteProcessStart", |
+ base::Time::Now() - base::Time::FromInternalValue(remote_start_time)); |
+ } |
} |
g_browser_process->platform_part()->PlatformSpecificCommandLineProcessing( |