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

Issue 15979017: [Android WebView] Provide a minimal error description for nav errors (Closed)

Created:
7 years, 6 months ago by mnaganov (inactive)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] Provide a minimal error description for nav errors Since not all net error codes can be mapped onto Android error codes, at least provide a minimal description for the client. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204002

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added a test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java View 1 2 chunks +18 lines, -0 lines 2 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
mnaganov (inactive)
7 years, 6 months ago (2013-06-04 10:12:37 UTC) #1
mkosiba (inactive)
nice! did you fix this because of a specific error case that didn't have an ...
7 years, 6 months ago (2013-06-04 10:19:54 UTC) #2
benm (inactive)
lgtm https://codereview.chromium.org/15979017/diff/1/android_webview/renderer/aw_content_renderer_client.cc File android_webview/renderer/aw_content_renderer_client.cc (right): https://codereview.chromium.org/15979017/diff/1/android_webview/renderer/aw_content_renderer_client.cc#newcode74 android_webview/renderer/aw_content_renderer_client.cc:74: string16(ASCIIToUTF16(net::ErrorToString(error.reason))); is the string16 ctor needed?
7 years, 6 months ago (2013-06-04 10:24:50 UTC) #3
mnaganov (inactive)
> nice! did you fix this because of a specific error case that didn't have ...
7 years, 6 months ago (2013-06-04 10:43:04 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/15979017/5001
7 years, 6 months ago (2013-06-04 10:43:19 UTC) #5
joth
lgtm https://chromiumcodereview.appspot.com/15979017/diff/5001/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java File android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java (right): https://chromiumcodereview.appspot.com/15979017/diff/5001/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java#newcode137 android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java:137: assertNotNull(onReceivedErrorHelper.getDescription()); assert it's not empty string too?
7 years, 6 months ago (2013-06-04 17:43:19 UTC) #6
commit-bot: I haz the power
Change committed as 204002
7 years, 6 months ago (2013-06-04 18:06:21 UTC) #7
mnaganov (inactive)
7 years, 6 months ago (2013-06-05 09:28:25 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/15979017/diff/5001/android_webview/javatests/...
File
android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java
(right):

https://codereview.chromium.org/15979017/diff/5001/android_webview/javatests/...
android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java:137:
assertNotNull(onReceivedErrorHelper.getDescription());
On 2013/06/04 17:43:19, joth wrote:
> assert it's not empty string too?

Bingo! The code wasn't actually working. See
https://codereview.chromium.org/16441002/

Powered by Google App Engine
This is Rietveld 408576698