diff options
author | kkhorimoto <kkhorimoto@chromium.org> | 2015-07-06 14:22:15 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-06 21:22:39 +0000 |
commit | d70e5c4bd55edf8c901b11b6f1e0aa8f1bacdde5 (patch) | |
tree | 2786a6a36889a7356b6d7700235dd6599fca9478 /base/base.gypi | |
parent | fe38fa2ac06375c45ca4fcb5dbbc0299b82fad77 (diff) | |
download | chromium_src-d70e5c4bd55edf8c901b11b6f1e0aa8f1bacdde5.zip chromium_src-d70e5c4bd55edf8c901b11b6f1e0aa8f1bacdde5.tar.gz chromium_src-d70e5c4bd55edf8c901b11b6f1e0aa8f1bacdde5.tar.bz2 |
Updated error translation logic.
This CL changes several aspects of our error translation code:
- Moves the actual translation process to |-loadErrorInNativeView:|.
This allows the logic in |-handleLoadError:inMainFrame:| to correctly
differentiate between webview-generated errors and errors originating
from the net stack.
- Changes |NetErrorFromError()| to translate the ultimate underlying
error rather than the top-level error, and appends the translated
error to the end of the passed-in error's underlying error chain.
- Created |GetUltimateUnderlyingErrorForError()|, which iterates through
the underlying error chain to find the original error.
BUG=492434, 496972, 496115, 473888
Review URL: https://codereview.chromium.org/1178063007
Cr-Commit-Position: refs/heads/master@{#337475}
Diffstat (limited to 'base/base.gypi')
-rw-r--r-- | base/base.gypi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/base.gypi b/base/base.gypi index 0f9196a..86815b6 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -246,6 +246,8 @@ 'ios/device_util.mm', 'ios/ios_util.h', 'ios/ios_util.mm', + 'ios/ns_error_util.h', + 'ios/ns_error_util.mm', 'ios/scoped_critical_action.h', 'ios/scoped_critical_action.mm', 'ios/weak_nsobject.h', |