| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index d862822a4da54d240d9a70de37788ad9d822c0b0..0e1e8a0ee6f30253dbfec852fbeb3595ff9c4d87 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -5121,9 +5121,9 @@ TabContentsWrapper* Browser::TabContentsFactory(
|
| int routing_id,
|
| const TabContents* base_tab_contents,
|
| SessionStorageNamespace* session_storage_namespace) {
|
| - TabContents* new_contents = new TabContents(profile, site_instance,
|
| - routing_id, base_tab_contents,
|
| - session_storage_namespace);
|
| + TabContents* new_contents = new TabContents(
|
| + profile, site_instance, routing_id, base_tab_contents ?
|
| + base_tab_contents->content_frame() : NULL, session_storage_namespace);
|
| TabContentsWrapper* wrapper = new TabContentsWrapper(new_contents);
|
| return wrapper;
|
| }
|
|
|