Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7441)

Unified Diff: chrome/browser/ui/browser.cc

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Current checkpoint Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698