diff options
author | sammc <sammc@chromium.org> | 2016-03-10 21:24:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-11 05:26:57 +0000 |
commit | 2eb97bdbc5ebc7fec94c53010b064c677e4cab8f (patch) | |
tree | 273ac8057e3551c17ec96bca449fe51f37d51afb /content/renderer/mojo_context_state.h | |
parent | e26eb3267527f0d5633283cef06a13995e0d41eb (diff) | |
download | chromium_src-2eb97bdbc5ebc7fec94c53010b064c677e4cab8f.zip chromium_src-2eb97bdbc5ebc7fec94c53010b064c677e4cab8f.tar.gz chromium_src-2eb97bdbc5ebc7fec94c53010b064c677e4cab8f.tar.bz2 |
Handle JS mojo module fetch failures gracefully.
Currently, if the fetch of the source for a JS mojo module fails, the
requesting renderer crashes. With this CL, it logs an error instead.
BUG=592831
Review URL: https://codereview.chromium.org/1776263002
Cr-Commit-Position: refs/heads/master@{#380528}
Diffstat (limited to 'content/renderer/mojo_context_state.h')
-rw-r--r-- | content/renderer/mojo_context_state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/renderer/mojo_context_state.h b/content/renderer/mojo_context_state.h index c9af262..eaca530 100644 --- a/content/renderer/mojo_context_state.h +++ b/content/renderer/mojo_context_state.h @@ -55,6 +55,7 @@ class MojoContextState : public gin::ModuleRegistryObserver { // Callback once a module has finished downloading. Passes data to |runner_|. void OnFetchModuleComplete(ResourceFetcher* fetcher, + const std::string& id, const blink::WebURLResponse& response, const std::string& data); |