         recentlyClosedTabsButton.enabled = profile.recentlyClosedTabs.tabs.count > 0
     }
 
-    func updateNumberOfSyncedDevices() {
-        self.profile.getCachedClientsAndTabs().uponQueue(dispatch_get_main_queue()) { result in
-            guard let clientAndTabs = result.successValue?.filter({ $0.tabs.count > 0 }) where clientAndTabs.count > 0 else {
-                self.syncedTabsButton.descriptionLabel.hidden = true
-                self.syncedTabsButton.updateConstraints()
-                return
-            }
-
-            self.syncedTabsButton.descriptionLabel.text = String.localizedStringWithFormat(Strings.SyncedTabsTableViewCellDescription, clientAndTabs.count)
+    func updateNumberOfSyncedDevices(count: Int?) {
+        if let count = count where count > 0 {
+            self.syncedTabsButton.descriptionLabel.text = String.localizedStringWithFormat(Strings.SyncedTabsTableViewCellDescription, count)
             self.syncedTabsButton.descriptionLabel.hidden = false
+        } else {
+            self.syncedTabsButton.descriptionLabel.hidden = true
             self.syncedTabsButton.updateConstraints()
         }
+        self.syncedTabsButton.updateConstraints()
     }
 
     @objc private func syncedTabsCellWasTapped() {

class HistoryPanel: UIViewController, HomePanel {
    weak var homePanelDelegate: HomePanelDelegate? = nil
    var profile: Profile!
    private lazy var tableViewController: HistoryPanelSiteTableViewController = {
        return HistoryPanelSiteTableViewController()
    }()

                self.endRefreshing()
            }

            self.historyPanel?.updateSyncedDevicesCount().uponQueue(dispatch_get_main_queue()) { result in
                self.historyPanel?.updateNumberOfSyncedDevices(self.historyPanel?.currentSyncedDevicesCount)
            }
        }
    }

