summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authornewt@chromium.org <newt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-05 20:26:41 +0000
committernewt@chromium.org <newt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-05 20:26:41 +0000
commita574fd0e427fc27eacff618012117efa348d1509 (patch)
tree48f96144fe3777cc85ac5939182db78a77aba9d9 /chrome
parent71e61fb9c8643fa04f2397e854bb6e747d9fc668 (diff)
downloadchromium_src-a574fd0e427fc27eacff618012117efa348d1509.zip
chromium_src-a574fd0e427fc27eacff618012117efa348d1509.tar.gz
chromium_src-a574fd0e427fc27eacff618012117efa348d1509.tar.bz2
Show alternate error page for non-existent URLs.
Navigating to iwoeaslkdfja.com will now show the alternate error/suggestion page, instead of the net::ERR_NAME_NOT_RESOLVED error page. BUG=179399 Review URL: https://chromiumcodereview.appspot.com/12391082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/android/tab_android.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 16acaae..fca7cae 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/sessions/session_tab_helper.h"
#include "chrome/browser/ssl/ssl_tab_helper.h"
#include "chrome/browser/translate/translate_tab_helper.h"
+#include "chrome/browser/ui/alternate_error_tab_observer.h"
#include "chrome/browser/ui/android/window_android_helper.h"
#include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
#include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
@@ -57,6 +58,7 @@ void BrowserTabContents::AttachTabHelpers(WebContents* contents) {
// helpers may rely on that.
SessionTabHelper::CreateForWebContents(contents);
+ AlternateErrorPageTabObserver::CreateForWebContents(contents);
autofill::TabAutofillManagerDelegate::CreateForWebContents(contents);
AutofillManager::CreateForWebContentsAndDelegate(
contents,