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

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

Issue 10907268: Switch AlternateErrorPageTabObserver to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tab_contents/tab_contents.cc
diff --git a/chrome/browser/ui/tab_contents/tab_contents.cc b/chrome/browser/ui/tab_contents/tab_contents.cc
index b31c44560e490675fa6c2a908e73ded6ed0a9c34..5c24358a9fed716f68b0dcdef0ea1e8a77d82d18 100644
--- a/chrome/browser/ui/tab_contents/tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents.cc
@@ -114,6 +114,7 @@ TabContents::TabContents(WebContents* contents)
// helpers may rely on that.
SessionTabHelper::CreateForWebContents(contents);
+ AlternateErrorPageTabObserver::CreateForWebContents(contents);
autocomplete_history_manager_.reset(new AutocompleteHistoryManager(contents));
autofill_delegate_.reset(new TabAutofillManagerDelegate(this));
autofill_manager_ = new AutofillManager(autofill_delegate_.get(), this);
@@ -167,9 +168,6 @@ TabContents::TabContents(WebContents* contents)
sad_tab_helper_.reset(new SadTabHelper(contents));
#endif
- // Create the per-tab observers.
- alternate_error_page_tab_observer_.reset(
- new AlternateErrorPageTabObserver(contents, profile()));
external_protocol_observer_.reset(new ExternalProtocolObserver(contents));
navigation_metrics_recorder_.reset(new NavigationMetricsRecorder(contents));
pdf_tab_observer_.reset(new PDFTabObserver(this));
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698