summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/browser_main.cc2
-rw-r--r--chrome/browser/google_update_settings_posix.cc14
2 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 9554f9f..7448200 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -978,6 +978,8 @@ int BrowserMain(const MainFunctionParams& parameters) {
// the main message loop.
if (browser_init.Start(parsed_command_line, std::wstring(), profile,
&result_code)) {
+ // Record now as the last succesful chrome start.
+ GoogleUpdateSettings::SetLastRunTime();
// Call Recycle() here as late as possible, before going into the loop
// because Start() will add things to it while creating the main window.
if (pool)
diff --git a/chrome/browser/google_update_settings_posix.cc b/chrome/browser/google_update_settings_posix.cc
index ff5bb4c..d1ce592 100644
--- a/chrome/browser/google_update_settings_posix.cc
+++ b/chrome/browser/google_update_settings_posix.cc
@@ -69,3 +69,17 @@ bool GoogleUpdateSettings::SetMetricsId(const std::wstring& client_id) {
google_update::posix_guid = WideToASCII(client_id);
return GoogleUpdateSettings::SetCollectStatsConsent(true);
}
+
+// GetLastRunTime and SetLastRunTime are not implemented for posix. Their
+// currebnt return values signal failure which the caller is designed to
+// handle.
+
+// static
+int GoogleUpdateSettings::GetLastRunTime() {
+ return -1;
+}
+
+// static
+bool GoogleUpdateSettings::SetLastRunTime() {
+ return false;
+}