| Index: chrome/browser/ui/browser.cc
|
| ===================================================================
|
| --- chrome/browser/ui/browser.cc (revision 95921)
|
| +++ chrome/browser/ui/browser.cc (working copy)
|
| @@ -1116,7 +1116,12 @@
|
| browser::NavigateParams params(this, url, transition);
|
| params.disposition = NEW_FOREGROUND_TAB;
|
| browser::Navigate(¶ms);
|
| - return params.target_contents;
|
| + TabContentsWrapper* target_contents_wrapper = params.target_contents;
|
| + NotificationService::current()->Notify(
|
| + content::NOTIFICATION_TAB_ADDED,
|
| + Source<TabContentsDelegate>(params.browser),
|
| + Details<TabContents>(target_contents_wrapper->tab_contents()));
|
| + return target_contents_wrapper;
|
| }
|
|
|
| TabContents* Browser::AddTab(TabContentsWrapper* tab_contents,
|
| @@ -3520,6 +3525,10 @@
|
| return GetJavaScriptDialogCreatorInstance();
|
| }
|
|
|
| +void Browser::UpdatePreferredSize(const gfx::Size& pref_size) {
|
| + window_->UpdatePreferredSize(pref_size);
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // Browser, TabContentsWrapperDelegate implementation:
|
|
|
|
|