diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 22:55:19 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 22:55:19 +0000 |
commit | 1db416e9f847c25d8a610df4b4e3570f2a480b3d (patch) | |
tree | c2d670d448b41a265fddebc19eeb17b994b07fdb /chrome/browser/tab_contents | |
parent | 9ed3c390013b9398ef258564ea73e1c306fdb907 (diff) | |
download | chromium_src-1db416e9f847c25d8a610df4b4e3570f2a480b3d.zip chromium_src-1db416e9f847c25d8a610df4b4e3570f2a480b3d.tar.gz chromium_src-1db416e9f847c25d8a610df4b4e3570f2a480b3d.tar.bz2 |
Mock the LinkDoctor for tests. Should greatly decrease ErrorPage test flakiness.
Not getting rid of WaitForTitleMatching because I have to add few more calls to the automation framework (http://crbug.com/19395) to wait properly after navigating back and forward.
TEST=Covered by ui_tests and browser_tests.
http://crbug.com/18365, http://crbug.com/19361
Review URL: http://codereview.chromium.org/174179
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23906 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 18880c1..7056fe5 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -141,9 +141,6 @@ const float kMaxHeightFactor = 0.6; // contents. const int kJavascriptMessageExpectedDelay = 1000; -const char kLinkDoctorBaseURL[] = - "http://linkhelp.clients.google.com/tbproxy/lh/fixurl"; - // The list of prefs we want to observe. const wchar_t* kPrefsToObserve[] = { prefs::kAlternateErrorPagesEnabled, @@ -2259,7 +2256,8 @@ GURL TabContents::GetAlternateErrorPageURL() const { PrefService* prefs = profile()->GetPrefs(); DCHECK(prefs); if (prefs->GetBoolean(prefs::kAlternateErrorPagesEnabled)) { - url = google_util::AppendGoogleLocaleParam(GURL(kLinkDoctorBaseURL)); + url = google_util::AppendGoogleLocaleParam( + GURL(google_util::kLinkDoctorBaseURL)); url = google_util::AppendGoogleTLDParam(url); } return url; |