DescriptionFix bug: AppShell: CHECK failure in PeerConnection init.
The bug was caused due to a missing step to reset the url_request_getter in resource_context_ after initializing a url_request_context_getter in extensions::ShellBrowserContext, refer to CL (https://codereview.chromium.org/615583003/). To fix this bug, a refactor is done in this CL, including:
- ExtensionURLRequestContextGetter was originally implemented in the wrong directory. It's only used by app_shell, hence it belongs in extensions/shell/browser. Rename and move ExtensionURLRequestContextGetter to extensions::ShellURLRequestContextGetter and put it in extensions/shell/browser. Also share code as much as possible with content::ShellURLRequestContextGetter;
- Rename and move ExtensionNetworkDelegate to extensions::ShellNetworkDelegate and live in extensions/shell/browser;
- Reuse content/shell/common/shell_switches.h for kDumpRenderTree.
BUG=420698
Committed: https://crrev.com/3328d99286e14e8c31b922c995fb7de7804bba69
Cr-Commit-Position: refs/heads/master@{#298862}
Patch Set 1 : #
Total comments: 32
Patch Set 2 : #
Total comments: 16
Patch Set 3 : Small changes are made. #
Total comments: 12
Patch Set 4 : Clean up. #
Total comments: 2
Patch Set 5 : #Patch Set 6 : rebase. #Patch Set 7 : Rebase again. #Messages
Total messages: 47 (20 generated)
|