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

Unified Diff: chrome/installer/util/master_preferences.cc

Issue 149220: The default ping delay should be 90 seconds. (Closed)
Patch Set: seconds not milliseconds Created 11 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
« 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/installer/util/master_preferences.cc
diff --git a/chrome/installer/util/master_preferences.cc b/chrome/installer/util/master_preferences.cc
index 4ff8b2feab4f65a918e600d5482867b1aab78ddb..8a7c6375ef3b398222fd22ed66da3069e5ea9baf 100644
--- a/chrome/installer/util/master_preferences.cc
+++ b/chrome/installer/util/master_preferences.cc
@@ -79,6 +79,9 @@ const wchar_t kDistroImportHomePagePref[] = L"import_home_page";
bool GetDistributionPingDelay(const FilePath& master_prefs_path,
int& delay) {
+ // 90 seconds is the default that we want to use in case master preferences
+ // is missing or corrupt.
+ delay = 90;
FilePath master_prefs = master_prefs_path;
if (master_prefs.empty()) {
if (!PathService::Get(base::DIR_EXE, &master_prefs))
« 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