summaryrefslogtreecommitdiffstats
path: root/content/renderer/mojo_context_state.h
diff options
context:
space:
mode:
authorsammc <sammc@chromium.org>2016-03-10 21:24:39 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-11 05:26:57 +0000
commit2eb97bdbc5ebc7fec94c53010b064c677e4cab8f (patch)
tree273ac8057e3551c17ec96bca449fe51f37d51afb /content/renderer/mojo_context_state.h
parente26eb3267527f0d5633283cef06a13995e0d41eb (diff)
downloadchromium_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.h1
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);