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

Issue 137623011: Switch to using the new Link Doctor API. (Closed)

Created:
6 years, 10 months ago by mmenke
Modified:
6 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Switch to using the new Link Doctor API. The new API allows Link Doctor results to be integrated into Chrome's own error pages. BUG=64832 R=pkasting@chromium.org, thakis@chromium.org, tsepez@chromium.org, ttuttle@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254207

Patch Set 1 #

Patch Set 2 : Sync, fix stuff #

Patch Set 3 : Fix AlternateErrorTabObserver #

Patch Set 4 : Cleanup, add tests, fix ChromeOS #

Patch Set 5 : Really fix ChromeOS #

Total comments: 23

Patch Set 6 : Response to ttuttle's comments, rename AlternateErrorPageObserver #

Patch Set 7 : Reupload (Rename was borked) #

Patch Set 8 : Simulate click on more button #

Total comments: 16

Patch Set 9 : Add back comment #

Patch Set 10 : Restore comment, change variable name #

Patch Set 11 : Fix bug #

Total comments: 4

Patch Set 12 : Response to pkasting's comments, part 2 #

Total comments: 12

Patch Set 13 : Response to thakis's comments #

Patch Set 14 : sync / fix conflicts #

Patch Set 15 : Add missing file, fix test #

Total comments: 5

Patch Set 16 : #

Total comments: 11

Patch Set 17 : Response to comments (all but renaming) #

Patch Set 18 : Link Doctor -> Navigation Correction Service (In most places) ( sync) #

Patch Set 19 : Fix comments #

Patch Set 20 : reupload #

Patch Set 21 : Remove bonus line from a merge conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1526 lines, -718 lines) Patch
M chrome/app/generated_resources.grd View 3 chunks +18 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/offline/offline_load_page.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/errorpage_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 18 chunks +213 lines, -68 lines 0 comments Download
M chrome/browser/google/google_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/google/google_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +43 lines, -19 lines 0 comments Download
M chrome/browser/net/dns_probe_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 26 chunks +144 lines, -121 lines 0 comments Download
M chrome/browser/net/url_request_mock_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +2 lines, -2 lines 0 comments Download
D chrome/browser/ui/alternate_error_tab_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -61 lines 0 comments Download
M chrome/browser/ui/alternate_error_tab_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -101 lines 0 comments Download
A + chrome/browser/ui/navigation_correction_tab_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +17 lines, -16 lines 0 comments Download
A + chrome/browser/ui/navigation_correction_tab_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +27 lines, -29 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/localized_error.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +24 lines, -2 lines 0 comments Download
M chrome/common/localized_error.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +75 lines, -33 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/renderer/net/net_error_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +19 lines, -9 lines 0 comments Download
M chrome/renderer/net/net_error_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 9 chunks +56 lines, -25 lines 0 comments Download
M chrome/renderer/net/net_error_helper_core.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +31 lines, -11 lines 0 comments Download
M chrome/renderer/net/net_error_helper_core.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 11 chunks +267 lines, -86 lines 0 comments Download
M chrome/renderer/net/net_error_helper_core_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 30 chunks +447 lines, -94 lines 0 comments Download
M chrome/renderer/resources/neterror.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8 chunks +58 lines, -11 lines 0 comments Download
M chrome/renderer/resources/neterror.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +20 lines, -5 lines 0 comments Download
M chrome/renderer/resources/neterror.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +7 lines, -0 lines 0 comments Download
D chrome/test/data/mock-link-doctor.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -4 lines 0 comments Download
A chrome/test/data/mock-link-doctor.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +31 lines, -0 lines 0 comments Download
D chrome/test/data/mock-link-doctor.html.mock-http-headers View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -2 lines 0 comments Download
A chrome/test/data/mock-link-doctor.json.mock-http-headers View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
mmenke
6 years, 10 months ago (2014-02-04 01:57:09 UTC) #1
mmenke
[+thlx]: Please review localized_error and neterror changes. Link Doctor basically provides suggestions for mistyped URLs ...
6 years, 10 months ago (2014-02-04 16:43:19 UTC) #2
Deprecated (see juliatuttle)
Have some nits. Also: As a general naming trend, I feel like you should s/Link ...
6 years, 10 months ago (2014-02-04 17:44:21 UTC) #3
Tom Sepez
Messages LGTM - browser-to-renderer message, right?
6 years, 10 months ago (2014-02-04 18:14:20 UTC) #4
mmenke
On 2014/02/04 18:14:20, Tom Sepez wrote: > Messages LGTM - browser-to-renderer message, right? Yea, browser-to-renderer. ...
6 years, 10 months ago (2014-02-04 18:15:37 UTC) #5
mmenke
Thanks for the suggestions, ttuttle! I agree that we should update the term "alternate error ...
6 years, 10 months ago (2014-02-04 19:43:56 UTC) #6
Deprecated (see juliatuttle)
https://codereview.chromium.org/137623011/diff/1670001/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/137623011/diff/1670001/chrome/browser/errorpage_browsertest.cc#newcode56 chrome/browser/errorpage_browsertest.cc:56: // Expands the more box on the currently displayed ...
6 years, 10 months ago (2014-02-04 20:20:20 UTC) #7
mmenke
https://codereview.chromium.org/137623011/diff/1670001/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/137623011/diff/1670001/chrome/browser/errorpage_browsertest.cc#newcode56 chrome/browser/errorpage_browsertest.cc:56: // Expands the more box on the currently displayed ...
6 years, 10 months ago (2014-02-04 20:31:09 UTC) #8
Peter Kasting
https://codereview.chromium.org/137623011/diff/1960001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (left): https://codereview.chromium.org/137623011/diff/1960001/chrome/browser/google/google_util.cc#oldcode79 chrome/browser/google/google_util.cc:79: // 'no' for that. Why did you remove this ...
6 years, 10 months ago (2014-02-04 22:49:04 UTC) #9
mmenke
Thanks for the comments! https://codereview.chromium.org/137623011/diff/1960001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (left): https://codereview.chromium.org/137623011/diff/1960001/chrome/browser/google/google_util.cc#oldcode79 chrome/browser/google/google_util.cc:79: // 'no' for that. On ...
6 years, 10 months ago (2014-02-04 23:52:02 UTC) #10
Peter Kasting
LGTM https://codereview.chromium.org/137623011/diff/1960001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (right): https://codereview.chromium.org/137623011/diff/1960001/chrome/browser/google/google_util.cc#newcode103 chrome/browser/google/google_util.cc:103: NOTREACHED(); On 2014/02/04 23:52:02, mmenke wrote: > On ...
6 years, 10 months ago (2014-02-05 00:01:38 UTC) #11
mmenke
Thanks! https://codereview.chromium.org/137623011/diff/1960001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (right): https://codereview.chromium.org/137623011/diff/1960001/chrome/browser/google/google_util.cc#newcode103 chrome/browser/google/google_util.cc:103: NOTREACHED(); On 2014/02/05 00:01:39, Peter Kasting wrote: > ...
6 years, 10 months ago (2014-02-05 00:04:55 UTC) #12
mmenke
Ttuttle, thakis: Ping!
6 years, 10 months ago (2014-02-06 15:21:59 UTC) #13
(unused - use chromium)
Which bits am I supposed to look at? On Thu, Feb 6, 2014 at 7:21 ...
6 years, 10 months ago (2014-02-06 17:37:50 UTC) #14
mmenke
On 2014/02/06 17:37:50, thakis wrote: > Which bits am I supposed to look at? Sorry, ...
6 years, 10 months ago (2014-02-06 17:39:48 UTC) #15
Nico
my 4 files lgtm Some optional comments below. https://codereview.chromium.org/137623011/diff/2590001/chrome/common/localized_error.cc File chrome/common/localized_error.cc (right): https://codereview.chromium.org/137623011/diff/2590001/chrome/common/localized_error.cc#newcode624 chrome/common/localized_error.cc:624: if ...
6 years, 10 months ago (2014-02-06 17:58:31 UTC) #16
(unused - use chromium)
On Thu, Feb 6, 2014 at 9:39 AM, <mmenke@chromium.org> wrote: > On 2014/02/06 17:37:50, thakis ...
6 years, 10 months ago (2014-02-06 17:58:51 UTC) #17
mmenke
Thanks for the feedback! https://codereview.chromium.org/137623011/diff/2590001/chrome/common/localized_error.cc File chrome/common/localized_error.cc (right): https://codereview.chromium.org/137623011/diff/2590001/chrome/common/localized_error.cc#newcode624 chrome/common/localized_error.cc:624: if (params) { On 2014/02/06 ...
6 years, 10 months ago (2014-02-06 22:00:32 UTC) #18
mmenke
ttuttle: Ping!
6 years, 10 months ago (2014-02-07 19:56:47 UTC) #19
Deprecated (see juliatuttle)
lgtm with or without nits. https://codereview.chromium.org/137623011/diff/3330001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (right): https://codereview.chromium.org/137623011/diff/3330001/chrome/browser/google/google_util.cc#newcode79 chrome/browser/google/google_util.cc:79: // Google does not ...
6 years, 10 months ago (2014-02-08 01:51:30 UTC) #20
mmenke
https://codereview.chromium.org/137623011/diff/3330001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (right): https://codereview.chromium.org/137623011/diff/3330001/chrome/browser/google/google_util.cc#newcode79 chrome/browser/google/google_util.cc:79: // Google does not yet recognize 'nb' for Norwegian ...
6 years, 10 months ago (2014-02-08 01:57:48 UTC) #21
mmenke
pkasting: Sorry, I completely forgot about getting an owners review for a couple files. Mind ...
6 years, 10 months ago (2014-02-10 15:25:00 UTC) #22
Peter Kasting
LGTM https://codereview.chromium.org/137623011/diff/3690001/chrome/browser/ui/link_doctor_tab_observer.cc File chrome/browser/ui/link_doctor_tab_observer.cc (right): https://codereview.chromium.org/137623011/diff/3690001/chrome/browser/ui/link_doctor_tab_observer.cc#newcode76 chrome/browser/ui/link_doctor_tab_observer.cc:76: GURL url; Nit: Remove this temp; return GURL() ...
6 years, 10 months ago (2014-02-10 23:19:46 UTC) #23
mmenke
Quick response to the major issue you raised, which I think is a perfectly valid ...
6 years, 10 months ago (2014-02-10 23:29:02 UTC) #24
mmenke
https://codereview.chromium.org/137623011/diff/3690001/chrome/browser/ui/link_doctor_tab_observer.h File chrome/browser/ui/link_doctor_tab_observer.h (right): https://codereview.chromium.org/137623011/diff/3690001/chrome/browser/ui/link_doctor_tab_observer.h#newcode20 chrome/browser/ui/link_doctor_tab_observer.h:20: // Per-tab class to implement Link Doctor functionality. Maybe ...
6 years, 10 months ago (2014-02-10 23:40:34 UTC) #25
mmenke
Thanks for the feedback! I'll plan to do the suggestion rename (NavigationCorrectionObserver / navigation correction ...
6 years, 10 months ago (2014-02-11 16:02:18 UTC) #26
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 10 months ago (2014-02-26 17:06:39 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/137623011/4760001
6 years, 10 months ago (2014-02-26 17:06:56 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 17:07:05 UTC) #29
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/navigation_correction_tab_observer.cc: While running patch -p0 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 10 months ago (2014-02-26 17:07:05 UTC) #30
mmenke
One of the bots doesn't like the rename.
6 years, 10 months ago (2014-02-26 17:44:03 UTC) #31
mmenke
Committed patchset #21 manually as r254207 (presubmit successful).
6 years, 9 months ago (2014-02-28 20:26:45 UTC) #32
mmenke
6 years, 9 months ago (2014-02-28 22:10:34 UTC) #33
Message was sent while issue was closed.
On 2014/02/28 20:26:45, mmenke wrote:
> Committed patchset #21 manually as r254207 (presubmit successful).

Patch was reverted due to a line I forgot to add back when responding to a
comment, I've now added it back.

Powered by Google App Engine
This is Rietveld 408576698