Index: chrome/browser/ui/cocoa/history_menu_bridge.mm |
diff --git a/chrome/browser/ui/cocoa/history_menu_bridge.mm b/chrome/browser/ui/cocoa/history_menu_bridge.mm |
index 22e83c4eb181e283788f124ff9d4f70fcb3323b7..7dd8218b2ccae2ce20b9e83e0e3c6c6b4c206d81 100644 |
--- a/chrome/browser/ui/cocoa/history_menu_bridge.mm |
+++ b/chrome/browser/ui/cocoa/history_menu_bridge.mm |
@@ -92,7 +92,13 @@ HistoryMenuBridge::HistoryMenuBridge(Profile* profile) |
tab_restore_service_ = TabRestoreServiceFactory::GetForProfile(profile_); |
if (tab_restore_service_) { |
tab_restore_service_->AddObserver(this); |
- tab_restore_service_->LoadTabsFromLastSession(); |
+ // If the tab entries are already loaded, invoke the observer method to |
+ // build the "Recently Closed" section. Otherwise it will be when the |
+ // backend loads. |
+ if (!tab_restore_service_->IsLoaded()) |
+ tab_restore_service_->LoadTabsFromLastSession(); |
+ else |
+ TabRestoreServiceChanged(tab_restore_service_); |
} |
} |