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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 15813003: Ignore malformed arguments to --original-process-start-time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698