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

Issue 8142032: Add error description to the DidFailProvisionalLoad callback. (Closed)

Created:
9 years, 2 months ago by mkosiba (inactive)
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Avi (use Gerrit), Erik does not do reviews, dpranke+watch-content_chromium.org, jam, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org, Steve Block
Visibility:
Public.

Description

Add error description to the DidFailProvisionalLoad callback. This will add an error description field to the TabContentsObserver:: DidFailProvisionalLoad callback. The change should not have any impact on current behavior. This is needed for the Chromium port on Android. BUG=none TEST=base_unittests,content_unittests,browser_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104895

Patch Set 1 #

Total comments: 19

Patch Set 2 : incorporated feedback #

Patch Set 3 : removed unnecessary change #

Total comments: 12

Patch Set 4 : incorporated feedback (style only, no functional changes) #

Total comments: 6

Patch Set 5 : more feedback, slight functional changes #

Patch Set 6 : rebase #

Patch Set 7 : update commit message with BUG and TEST fields #

Total comments: 2

Patch Set 8 : fixed misbehaving unit test #

Patch Set 9 : brought back logging.h #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -115 lines) Patch
M chrome/browser/extensions/extension_webnavigation_api.h View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_webnavigation_api.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +40 lines, -31 lines 0 comments Download
M chrome/renderer/localized_error.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/localized_error.cc View 1 2 3 4 5 8 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/tab_contents/navigation_controller_unittest.cc View 1 2 3 4 5 3 chunks +27 lines, -18 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 2 chunks +24 lines, -18 lines 0 comments Download
M content/browser/tab_contents/tab_contents_observer.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents_observer.cc View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 3 chunks +20 lines, -9 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -3 lines 0 comments Download
M content/renderer/mock_content_renderer_client.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/mock_content_renderer_client.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -6 lines 0 comments Download
M content/shell/shell_content_renderer_client.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M content/shell/shell_content_renderer_client.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
mkosiba (inactive)
9 years, 2 months ago (2011-10-05 15:43:16 UTC) #1
mmenke
[+jam] You're going to need a content owner to sign off on this, too. http://codereview.chromium.org/8142032/diff/1/chrome/renderer/chrome_content_renderer_client.cc ...
9 years, 2 months ago (2011-10-05 16:05:18 UTC) #2
jam
http://codereview.chromium.org/8142032/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/8142032/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode536 chrome/renderer/chrome_content_renderer_client.cc:536: const GURL failed_url(error.unreachableURL); nit: the compiler is smart enough ...
9 years, 2 months ago (2011-10-05 17:12:06 UTC) #3
mmenke
http://codereview.chromium.org/8142032/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/8142032/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode579 chrome/renderer/chrome_content_renderer_client.cc:579: const GURL failed_url = error.unreachableURL; On 2011/10/05 16:05:18, Matt ...
9 years, 2 months ago (2011-10-05 17:40:11 UTC) #4
mkosiba (inactive)
It's a bit late in my time zone so I'm just responding to feedback. I'm ...
9 years, 2 months ago (2011-10-05 17:53:18 UTC) #5
mmenke
http://codereview.chromium.org/8142032/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/8142032/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode584 chrome/renderer/chrome_content_renderer_client.cc:584: EqualsASCII(failed_request.httpMethod(), "POST"); On 2011/10/05 17:53:18, Martin Kosiba wrote: > ...
9 years, 2 months ago (2011-10-05 18:07:28 UTC) #6
jam
http://codereview.chromium.org/8142032/diff/1/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): http://codereview.chromium.org/8142032/diff/1/content/public/renderer/content_renderer_client.h#newcode76 content/public/renderer/content_renderer_client.h:76: virtual string16 GetNavigationErrorDescription( On 2011/10/05 17:53:18, Martin Kosiba wrote: ...
9 years, 2 months ago (2011-10-05 19:33:57 UTC) #7
mkosiba (inactive)
9 years, 2 months ago (2011-10-07 13:53:00 UTC) #8
mmenke
http://codereview.chromium.org/8142032/diff/14003/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/8142032/diff/14003/chrome/renderer/chrome_content_renderer_client.cc#newcode548 chrome/renderer/chrome_content_renderer_client.cc:548: if (NULL != error_html) { nit: Chrome style is ...
9 years, 2 months ago (2011-10-07 14:19:43 UTC) #9
mkosiba (inactive)
http://codereview.chromium.org/8142032/diff/14003/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/8142032/diff/14003/chrome/renderer/chrome_content_renderer_client.cc#newcode548 chrome/renderer/chrome_content_renderer_client.cc:548: if (NULL != error_html) { On 2011/10/07 14:19:44, Matt ...
9 years, 2 months ago (2011-10-07 15:46:11 UTC) #10
jam
just nits http://codereview.chromium.org/8142032/diff/15002/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/8142032/diff/15002/chrome/renderer/chrome_content_renderer_client.cc#newcode548 chrome/renderer/chrome_content_renderer_client.cc:548: if (error_html != NULL) { nit: here ...
9 years, 2 months ago (2011-10-07 16:03:28 UTC) #11
mkosiba (inactive)
http://codereview.chromium.org/8142032/diff/15002/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/8142032/diff/15002/chrome/renderer/chrome_content_renderer_client.cc#newcode548 chrome/renderer/chrome_content_renderer_client.cc:548: if (error_html != NULL) { On 2011/10/07 16:03:28, John ...
9 years, 2 months ago (2011-10-07 17:54:32 UTC) #12
jam
lgtm
9 years, 2 months ago (2011-10-07 21:13:35 UTC) #13
mmenke
LGTM
9 years, 2 months ago (2011-10-07 21:15:02 UTC) #14
mkosiba (inactive)
The refactoring I did based on the feedback caused a unit test to start failing. ...
9 years, 2 months ago (2011-10-10 17:35:27 UTC) #15
mmenke
LGTM, modulo a nit. http://codereview.chromium.org/8142032/diff/24001/chrome/renderer/localized_error.cc File chrome/renderer/localized_error.cc (right): http://codereview.chromium.org/8142032/diff/24001/chrome/renderer/localized_error.cc#newcode8 chrome/renderer/localized_error.cc:8: #include "base/logging.h" This is where ...
9 years, 2 months ago (2011-10-10 17:41:18 UTC) #16
mkosiba (inactive)
http://codereview.chromium.org/8142032/diff/24001/chrome/renderer/localized_error.cc File chrome/renderer/localized_error.cc (right): http://codereview.chromium.org/8142032/diff/24001/chrome/renderer/localized_error.cc#newcode8 chrome/renderer/localized_error.cc:8: #include "base/logging.h" On 2011/10/10 17:41:18, Matt Menke wrote: > ...
9 years, 2 months ago (2011-10-10 18:16:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/8142032/27001
9 years, 2 months ago (2011-10-11 09:18:14 UTC) #18
commit-bot: I haz the power
Can't apply patch for file content/renderer/render_view.cc. While running patch -p1 --forward --force; patching file content/renderer/render_view.cc ...
9 years, 2 months ago (2011-10-11 09:18:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/8142032/30001
9 years, 2 months ago (2011-10-11 09:36:41 UTC) #20
commit-bot: I haz the power
Try job failure for 8142032-30001 on linux_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=1778 Step "update" is always ...
9 years, 2 months ago (2011-10-11 09:38:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/8142032/30001
9 years, 2 months ago (2011-10-11 12:28:38 UTC) #22
commit-bot: I haz the power
9 years, 2 months ago (2011-10-11 15:32:00 UTC) #23
Change committed as 104895

Powered by Google App Engine
This is Rietveld 408576698