Bug 756846 - Increase timeout to 3 minutes for prefetch clearing. r=rstrong
authorBrian R. Bondy <netzen@gmail.com>
Sun, 27 May 2012 22:40:48 -0400
changeset 95068 b3ca05098ddcbb2dd07cc9fce53b3e01f638c3db
parent 95067 21ae85ff42865880dbaaf3d1fbc6713dcf500acf
child 95069 fb61360eab85c6b908ab08dab2009aa8010a9912
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersrstrong
bugs756846
milestone15.0a1
Bug 756846 - Increase timeout to 3 minutes for prefetch clearing. r=rstrong
browser/components/shell/src/nsWindowsShellService.cpp
--- a/browser/components/shell/src/nsWindowsShellService.cpp
+++ b/browser/components/shell/src/nsWindowsShellService.cpp
@@ -49,19 +49,19 @@
   (val == ERROR_SUCCESS)
 
 #define REG_FAILED(val) \
   (val != ERROR_SUCCESS)
 
 #define NS_TASKBAR_CONTRACTID "@mozilla.org/windows-taskbar;1"
 
 // We clear the prefetch files one time after the browser is started after
-// 60 seconds.  After this is done once we set a pref so this will never happen
+// 3 minutes.  After this is done once we set a pref so this will never happen
 // again except in updater code.
-#define CLEAR_PREFETCH_TIMEOUT_MS 60000
+#define CLEAR_PREFETCH_TIMEOUT_MS 180000
 
 NS_IMPL_ISUPPORTS2(nsWindowsShellService, nsIWindowsShellService, nsIShellService)
 
 static nsresult
 OpenKeyForReading(HKEY aKeyRoot, const nsAString& aKeyName, HKEY* aKey)
 {
   const nsString &flatName = PromiseFlatString(aKeyName);