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

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

Issue 8404046: When creating a tab contents for a browser in the RVHDelegateHelper, create a wrapper immediately. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 months 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/ui/browser.h ('k') | chrome/test/data/extensions/api_test/webrequest/framework.js » ('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 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();
}
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/test/data/extensions/api_test/webrequest/framework.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698