| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 50450606f26c6f0484168043fb622d40f81a9cc1..c6d25a52f6c84e5dc81f60b61d4f74013d5314d6 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -3851,6 +3851,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();
|
| }
|
|
|