Skip to content

Instantly share code, notes, and snippets.

@thebnich
Created January 25, 2016 23:03
Show Gist options
  • Save thebnich/3a1c32da59647ad115fd to your computer and use it in GitHub Desktop.
Save thebnich/3a1c32da59647ad115fd to your computer and use it in GitHub Desktop.
diff --git a/Client/Frontend/Browser/BrowserViewController.swift b/Client/Frontend/Browser/BrowserViewController.swift
index 2800e0e..a39b03e 100644
--- a/Client/Frontend/Browser/BrowserViewController.swift
+++ b/Client/Frontend/Browser/BrowserViewController.swift
@@ -439,24 +439,7 @@ class BrowserViewController: UIViewController {
self.view.alpha = (profile.prefs.intForKey(IntroViewControllerSeenProfileKey) != nil) ? 1.0 : 0.0
}
- if activeCrashReporter?.previouslyCrashed ?? false {
- log.debug("Previously crashed.")
-
- // Reset previous crash state
- activeCrashReporter?.resetPreviousCrashState()
-
- let optedIntoCrashReporting = profile.prefs.boolForKey("crashreports.send.always")
- if optedIntoCrashReporting == nil {
- // Offer a chance to allow the user to opt into crash reporting
- showCrashOptInAlert()
- } else {
- showRestoreTabsAlert()
- }
- } else {
- log.debug("Restoring tabs.")
- tabManager.restoreTabs()
- log.debug("Done restoring tabs.")
- }
+ showRestoreTabsAlert()
log.debug("Updating tab count.")
updateTabCountUsingTabManager(tabManager, animated: false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment