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

Issue 570253002: Componentize NetErrorHelperCore (Closed)

Created:
6 years, 3 months ago by hashimoto
Modified:
6 years, 2 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, davemoore+watch_chromium.org, Elly Fong-Jones, nkostylev+watch_chromium.org, oshima+watch_chromium.org, Randy Smith (Not in Mondays), stevenjb+watch_chromium.org, Deprecated (see juliatuttle)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Componentize NetErrorHelperCore Create a new component error_page which will host NetErrorHelper to make it usable from binaries other than chrome. Move NetErrorHelperCore and net_error_info.{cc,h} to components/error_page. Split LocalizedError::ErrorPageParams to components/error_page/common/error_page_params. Move string resources to error_page_strings.grdp Fix GYP, GN, DEPS. Copy OWNERS from chrome/renderer/net to components/error_page. BUG=398173 TEST=build TBR=sky@chromium.org for +ui/base in DEPS Committed: https://crrev.com/9b160e24e7f967dda04cac13d393124ba173a0e8 Cr-Commit-Position: refs/heads/master@{#299647}

Patch Set 1 : #

Patch Set 2 : Fix Win64 #

Total comments: 4

Patch Set 3 : Fix OWNERS #

Total comments: 25

Patch Set 4 : rebase #

Patch Set 5 : Address comments #

Patch Set 6 : rebase #

Patch Set 7 : Fix comments #

Total comments: 2

Patch Set 8 : rebase #

Patch Set 9 : Fix comment #

Total comments: 6

Patch Set 10 : Add GURL dependency #

Patch Set 11 : rebase #

Patch Set 12 : More specific DEPS rule #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -3907 lines) Patch
M chrome/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -9 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 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/net/dns_probe_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/dns_probe_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/dns_probe_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/net_error_tab_helper.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/net_error_tab_helper.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/net_error_tab_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/localized_error.h View 2 chunks +5 lines, -23 lines 0 comments Download
M chrome/common/localized_error.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +4 lines, -12 lines 0 comments Download
M chrome/common/net/BUILD.gn View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
D chrome/common/net/net_error_info.h View 1 chunk +0 lines, -94 lines 0 comments Download
D chrome/common/net/net_error_info.cc View 1 chunk +0 lines, -45 lines 0 comments Download
M chrome/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 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 5 chunks +9 lines, -6 lines 0 comments Download
M chrome/renderer/net/net_error_helper.cc View 4 chunks +6 lines, -3 lines 0 comments Download
D chrome/renderer/net/net_error_helper_core.h View 1 chunk +0 lines, -266 lines 0 comments Download
D chrome/renderer/net/net_error_helper_core.cc View 1 chunk +0 lines, -948 lines 0 comments Download
D chrome/renderer/net/net_error_helper_core_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2433 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/components_strings.grd View 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
A components/error_page.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +54 lines, -0 lines 0 comments Download
A + components/error_page/OWNERS View 1 2 1 chunk +0 lines, -1 line 0 comments Download
A + components/error_page/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -3 lines 0 comments Download
A components/error_page/common/error_page_params.h View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A components/error_page/common/error_page_params.cc View 1 chunk +20 lines, -0 lines 0 comments Download
A + components/error_page/common/net_error_info.h View 1 2 3 4 4 chunks +8 lines, -10 lines 0 comments Download
A + components/error_page/common/net_error_info.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
A + components/error_page/renderer/BUILD.gn View 1 chunk +8 lines, -8 lines 0 comments Download
A + components/error_page/renderer/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
A + components/error_page/renderer/net_error_helper_core.h View 5 chunks +11 lines, -6 lines 0 comments Download
A + components/error_page/renderer/net_error_helper_core.cc View 1 11 chunks +15 lines, -11 lines 0 comments Download
A + components/error_page/renderer/net_error_helper_core_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +15 lines, -12 lines 0 comments Download
A components/error_page_strings.grdp View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (13 generated)
hashimoto
mmenke@: Could you review this change as an owner of the code being moved? blundell@: ...
6 years, 3 months ago (2014-09-16 09:05:50 UTC) #3
blundell
//components LGTM. Please add the new grdp file on the internal side once this lands.
6 years, 3 months ago (2014-09-16 10:20:03 UTC) #5
mmenke
[+cc ttuttle, ellyjones, rdsmith]: Just FYI
6 years, 3 months ago (2014-09-16 14:33:59 UTC) #6
mmenke
I support componentizing this logic (iOS, for instance, needs to have error page logic componentized, ...
6 years, 3 months ago (2014-09-16 14:45:05 UTC) #7
hashimoto
https://codereview.chromium.org/570253002/diff/60001/components/error_page/OWNERS File components/error_page/OWNERS (right): https://codereview.chromium.org/570253002/diff/60001/components/error_page/OWNERS#newcode1 components/error_page/OWNERS:1: jar@chromium.org On 2014/09/16 14:45:05, mmenke wrote: > Should remove ...
6 years, 3 months ago (2014-09-16 16:12:03 UTC) #8
mmenke
On 2014/09/16 16:12:03, hashimoto wrote: > https://codereview.chromium.org/570253002/diff/60001/components/error_page/OWNERS > File components/error_page/OWNERS (right): > > https://codereview.chromium.org/570253002/diff/60001/components/error_page/OWNERS#newcode1 > ...
6 years, 3 months ago (2014-09-16 18:02:41 UTC) #9
blundell
On 2014/09/16 18:02:41, mmenke wrote: > On 2014/09/16 16:12:03, hashimoto wrote: > > > https://codereview.chromium.org/570253002/diff/60001/components/error_page/OWNERS ...
6 years, 3 months ago (2014-09-17 12:02:09 UTC) #10
mmenke
I am really concerned about layering violations here. If you can clean them all up, ...
6 years, 3 months ago (2014-09-18 17:50:43 UTC) #11
blundell
On 2014/09/18 17:50:43, mmenke wrote: > I am really concerned about layering violations here. If ...
6 years, 3 months ago (2014-09-19 07:16:42 UTC) #12
hashimoto
https://codereview.chromium.org/570253002/diff/80001/components/error_page/common/error_page_params.h File components/error_page/common/error_page_params.h (right): https://codereview.chromium.org/570253002/diff/80001/components/error_page/common/error_page_params.h#newcode29 components/error_page/common/error_page_params.h:29: // optionally contain a body as well. Must not ...
6 years, 3 months ago (2014-09-22 09:28:12 UTC) #13
hashimoto
On 2014/09/19 07:16:42, blundell wrote: > On 2014/09/18 17:50:43, mmenke wrote: > > I am ...
6 years, 3 months ago (2014-09-22 09:39:44 UTC) #14
mmenke
On 2014/09/22 09:39:44, hashimoto wrote: > On 2014/09/19 07:16:42, blundell wrote: > > On 2014/09/18 ...
6 years, 3 months ago (2014-09-23 15:04:25 UTC) #15
mmenke
https://codereview.chromium.org/570253002/diff/80001/components/error_page/common/error_page_params.h File components/error_page/common/error_page_params.h (right): https://codereview.chromium.org/570253002/diff/80001/components/error_page/common/error_page_params.h#newcode29 components/error_page/common/error_page_params.h:29: // optionally contain a body as well. Must not ...
6 years, 3 months ago (2014-09-23 15:04:34 UTC) #16
mmenke
One final comment: I'd like to arrive at a consensus on the path forward before ...
6 years, 3 months ago (2014-09-23 15:06:21 UTC) #17
blundell
The component could have core/ and content/ subdirectories, with the renderer code living in the ...
6 years, 3 months ago (2014-09-23 15:08:14 UTC) #18
hashimoto
On 2014/09/23 15:04:25, mmenke wrote: > On 2014/09/22 09:39:44, hashimoto wrote: > > On 2014/09/19 ...
6 years, 3 months ago (2014-09-24 10:31:17 UTC) #19
blundell
> jscontent="urlCorrectionForDisplay"&gt;&lt;/a&gt;<ex>www.somewhere.com</ex></ph> > > > > > These seem really weird - they call functions ...
6 years, 3 months ago (2014-09-24 10:35:08 UTC) #20
hashimoto
https://codereview.chromium.org/570253002/diff/80001/components/error_page/renderer/net_error_helper_core.cc File components/error_page/renderer/net_error_helper_core.cc (right): https://codereview.chromium.org/570253002/diff/80001/components/error_page/renderer/net_error_helper_core.cc#newcode546 components/error_page/renderer/net_error_helper_core.cc:546: else if (url != GURL(content::kUnreachableWebDataURL)) On 2014/09/23 15:04:34, mmenke ...
6 years, 3 months ago (2014-09-24 10:59:41 UTC) #21
hashimoto
https://codereview.chromium.org/570253002/diff/80001/components/error_page/common/error_page_params.h File components/error_page/common/error_page_params.h (right): https://codereview.chromium.org/570253002/diff/80001/components/error_page/common/error_page_params.h#newcode29 components/error_page/common/error_page_params.h:29: // optionally contain a body as well. Must not ...
6 years, 2 months ago (2014-09-29 11:54:12 UTC) #23
mmenke
On 2014/09/29 11:54:12, hashimoto wrote: > https://codereview.chromium.org/570253002/diff/80001/components/error_page/common/error_page_params.h > File components/error_page/common/error_page_params.h (right): > > https://codereview.chromium.org/570253002/diff/80001/components/error_page/common/error_page_params.h#newcode29 > ...
6 years, 2 months ago (2014-09-29 19:31:21 UTC) #24
mmenke
LGTM, so sorry for slowness. https://codereview.chromium.org/570253002/diff/180001/components/error_page/common/error_page_params.h File components/error_page/common/error_page_params.h (right): https://codereview.chromium.org/570253002/diff/180001/components/error_page/common/error_page_params.h#newcode30 components/error_page/common/error_page_params.h:30: // Must not be ...
6 years, 2 months ago (2014-10-01 14:39:10 UTC) #25
hashimoto
https://codereview.chromium.org/570253002/diff/180001/components/error_page/common/error_page_params.h File components/error_page/common/error_page_params.h (right): https://codereview.chromium.org/570253002/diff/180001/components/error_page/common/error_page_params.h#newcode30 components/error_page/common/error_page_params.h:30: // Must not be NULL. On 2014/10/01 14:39:10, mmenke ...
6 years, 2 months ago (2014-10-02 12:07:40 UTC) #26
hashimoto
jochen, could you review this change as an owner of chrome/common/localized_error.{cc,h}? According to git-log, Nico ...
6 years, 2 months ago (2014-10-02 12:09:51 UTC) #28
jochen (gone - plz use gerrit)
https://codereview.chromium.org/570253002/diff/220001/components/error_page/common/error_page_params.h File components/error_page/common/error_page_params.h (right): https://codereview.chromium.org/570253002/diff/220001/components/error_page/common/error_page_params.h#newcode11 components/error_page/common/error_page_params.h:11: #include "url/gurl.h" you need to depend on //url to ...
6 years, 2 months ago (2014-10-02 12:45:36 UTC) #29
hashimoto
https://codereview.chromium.org/570253002/diff/220001/components/error_page/common/error_page_params.h File components/error_page/common/error_page_params.h (right): https://codereview.chromium.org/570253002/diff/220001/components/error_page/common/error_page_params.h#newcode11 components/error_page/common/error_page_params.h:11: #include "url/gurl.h" On 2014/10/02 12:45:35, jochen wrote: > you ...
6 years, 2 months ago (2014-10-02 14:03:32 UTC) #30
hashimoto
https://codereview.chromium.org/570253002/diff/220001/components/error_page/common/error_page_params.h File components/error_page/common/error_page_params.h (right): https://codereview.chromium.org/570253002/diff/220001/components/error_page/common/error_page_params.h#newcode32 components/error_page/common/error_page_params.h:32: scoped_ptr<base::ListValue> override_suggestions; On 2014/10/02 14:03:32, hashimoto wrote: > On ...
6 years, 2 months ago (2014-10-02 15:02:45 UTC) #31
blundell
https://codereview.chromium.org/570253002/diff/220001/components/error_page/common/error_page_params.h File components/error_page/common/error_page_params.h (right): https://codereview.chromium.org/570253002/diff/220001/components/error_page/common/error_page_params.h#newcode32 components/error_page/common/error_page_params.h:32: scoped_ptr<base::ListValue> override_suggestions; On 2014/10/02 15:02:45, hashimoto wrote: > On ...
6 years, 2 months ago (2014-10-06 05:32:38 UTC) #32
jochen (gone - plz use gerrit)
sorry for being unclear. You shouldn't copy a scoped_ptr<> around. it doesn't matter whether it's ...
6 years, 2 months ago (2014-10-06 07:39:34 UTC) #33
mmenke
On 2014/10/06 07:39:34, jochen wrote: > sorry for being unclear. > > You shouldn't copy ...
6 years, 2 months ago (2014-10-06 15:21:17 UTC) #34
jochen (gone - plz use gerrit)
oh well, you're only moving the code here, so lgtm as is
6 years, 2 months ago (2014-10-07 11:23:41 UTC) #35
hashimoto
TBRing sky@chromium.org for +ui/base in DEPS.
6 years, 2 months ago (2014-10-09 08:41:50 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/570253002/280001
6 years, 2 months ago (2014-10-09 08:42:54 UTC) #39
commit-bot: I haz the power
Failed to commit the patch.
6 years, 2 months ago (2014-10-09 14:50:15 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/570253002/280001
6 years, 2 months ago (2014-10-10 02:13:48 UTC) #44
commit-bot: I haz the power
Failed to apply patch for components/error_page/renderer/net_error_helper_core_unittest.cc: While running git apply --index -3 -p1; error: patch ...
6 years, 2 months ago (2014-10-10 02:15:25 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/570253002/350001
6 years, 2 months ago (2014-10-15 02:08:05 UTC) #49
commit-bot: I haz the power
Committed patchset #13 (id:350001)
6 years, 2 months ago (2014-10-15 03:57:02 UTC) #50
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 03:58:17 UTC) #51
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/9b160e24e7f967dda04cac13d393124ba173a0e8
Cr-Commit-Position: refs/heads/master@{#299647}

Powered by Google App Engine
This is Rietveld 408576698