Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index bbebf24e6ea6474003b907a08f962a0699bfb246..0d20bd0fbbec718b122ed2782108c0aa640e337b 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -3854,6 +3854,15 @@ bool Browser::ShouldAddNavigationToHistory( |
return !IsApplication(); |
} |
+void Browser::TabContentsCreated(TabContents* new_contents) { |
+ // Create a TabContentsWrapper now, so all observers are in place, as the |
+ // network requests for its initial navigation will start immediately. The |
+ // TabContents will later be inserted into this browser using |
+ // Browser::Navigate via AddNewContents. The latter will retrieve the newly |
+ // created TabContentsWrapper from TabContents object. |
+ new TabContentsWrapper(new_contents); |
+} |
+ |
void Browser::ContentRestrictionsChanged(TabContents* source) { |
UpdateCommandsForContentRestrictionState(); |
} |