Bug 1208000 - Default browser dialog appears only 2 times. r=Gijs, a=lizzard
authorJared Wein <jwein@mozilla.com>
Thu, 24 Sep 2015 14:18:00 +0200
changeset 296202 ebf46987bc2647ccc61ed0432938584bf4db3716
parent 296201 7bbe47be74935f14623561b1a871a8454f2713ec
child 296203 7c2733198a536f64ff4dd698751d47a707f46107
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, lizzard
bugs1208000
milestone43.0a2
Bug 1208000 - Default browser dialog appears only 2 times. r=Gijs, a=lizzard
browser/components/shell/nsGNOMEShellService.cpp
browser/components/shell/nsMacShellService.cpp
browser/components/shell/nsWindowsShellService.cpp
--- a/browser/components/shell/nsGNOMEShellService.cpp
+++ b/browser/components/shell/nsGNOMEShellService.cpp
@@ -347,17 +347,17 @@ nsGNOMEShellService::GetShouldSkipCheckD
   }
 
   int32_t defaultBrowserCheckCount;
   rv = prefs->GetIntPref(PREF_DEFAULTBROWSERCHECKCOUNT,
                          &defaultBrowserCheckCount);
   if (NS_FAILED(rv)) {
     return rv;
   }
-  if (defaultBrowserCheckCount < 3) {
+  if (defaultBrowserCheckCount < 4) {
     *aResult = false;
     return prefs->SetIntPref(PREF_DEFAULTBROWSERCHECKCOUNT,
                              defaultBrowserCheckCount + 1);
   }
 
   // Disable the default browser check after three attempts.
   // Don't modify PREF_CHECKDEFAULTBROWSER since that is a
   // user-initiated action and it shouldn't get re-enabled
--- a/browser/components/shell/nsMacShellService.cpp
+++ b/browser/components/shell/nsMacShellService.cpp
@@ -125,17 +125,17 @@ nsMacShellService::GetShouldSkipCheckDef
   }
 
   int32_t defaultBrowserCheckCount;
   rv = prefs->GetIntPref(PREF_DEFAULTBROWSERCHECKCOUNT,
                          &defaultBrowserCheckCount);
   if (NS_FAILED(rv)) {
     return rv;
   }
-  if (defaultBrowserCheckCount < 3) {
+  if (defaultBrowserCheckCount < 4) {
     *aResult = false;
     return prefs->SetIntPref(PREF_DEFAULTBROWSERCHECKCOUNT,
                              defaultBrowserCheckCount + 1);
   }
 
   // Disable the default browser check after three attempts.
   // Don't modify PREF_CHECKDEFAULTBROWSER since that is a
   // user-initiated action and it shouldn't get re-enabled
--- a/browser/components/shell/nsWindowsShellService.cpp
+++ b/browser/components/shell/nsWindowsShellService.cpp
@@ -1006,17 +1006,17 @@ nsWindowsShellService::GetShouldSkipChec
   }
 
   int32_t defaultBrowserCheckCount;
   rv = prefs->GetIntPref(PREF_DEFAULTBROWSERCHECKCOUNT,
                          &defaultBrowserCheckCount);
   if (NS_FAILED(rv)) {
     return rv;
   }
-  if (defaultBrowserCheckCount < 3) {
+  if (defaultBrowserCheckCount < 4) {
     *aResult = false;
     return prefs->SetIntPref(PREF_DEFAULTBROWSERCHECKCOUNT,
                              defaultBrowserCheckCount + 1);
   }
 
   // Disable the default browser check after three attempts.
   // Don't modify PREF_CHECKDEFAULTBROWSER since that is a
   // user-initiated action and it shouldn't get re-enabled