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

Issue 631203003: Fix bug: AppShell: CHECK failure in PeerConnection init. (Closed)

Created:
6 years, 2 months ago by Xi Han
Modified:
6 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org, lfg, wjmaclean, Fady Samuel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -638 lines) Patch
M content/shell/browser/shell_browser_context.h View 1 2 3 4 chunks +35 lines, -4 lines 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 2 3 2 chunks +18 lines, -26 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.cc View 2 chunks +5 lines, -1 line 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
D extensions/browser/extension_network_delegate.h View 1 chunk +0 lines, -60 lines 0 comments Download
D extensions/browser/extension_network_delegate.cc View 1 chunk +0 lines, -132 lines 0 comments Download
D extensions/browser/extension_url_request_context_getter.h View 1 chunk +0 lines, -72 lines 0 comments Download
D extensions/browser/extension_url_request_context_getter.cc View 1 chunk +0 lines, -250 lines 0 comments Download
M extensions/common/switches.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M extensions/common/switches.cc View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M extensions/shell/app_shell.gyp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/shell/browser/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/shell_browser_context.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M extensions/shell/browser/shell_browser_context.cc View 1 2 3 4 3 chunks +25 lines, -23 lines 0 comments Download
A + extensions/shell/browser/shell_network_delegate.h View 1 2 3 chunks +7 lines, -8 lines 0 comments Download
A + extensions/shell/browser/shell_network_delegate.cc View 7 chunks +14 lines, -14 lines 0 comments Download
A + extensions/shell/browser/shell_url_request_context_getter.h View 1 2 3 2 chunks +18 lines, -32 lines 0 comments Download
A extensions/shell/browser/shell_url_request_context_getter.cc View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (20 generated)
Xi Han
James: please take a look at all the changes. Thanks. It will be great if ...
6 years, 2 months ago (2014-10-07 15:17:13 UTC) #4
Xi Han
6 years, 2 months ago (2014-10-07 15:20:46 UTC) #5
James Cook
https://codereview.chromium.org/631203003/diff/40001/content/shell/browser/shell_browser_context.cc File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/631203003/diff/40001/content/shell/browser/shell_browser_context.cc#newcode32 content/shell/browser/shell_browser_context.cc:32: class ShellBrowserContext::ShellResourceContext : public ResourceContext { Another way to ...
6 years, 2 months ago (2014-10-07 16:24:55 UTC) #6
Xi Han
James: please take another look, thanks! https://codereview.chromium.org/631203003/diff/40001/content/shell/browser/shell_browser_context.cc File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/631203003/diff/40001/content/shell/browser/shell_browser_context.cc#newcode32 content/shell/browser/shell_browser_context.cc:32: class ShellBrowserContext::ShellResourceContext : ...
6 years, 2 months ago (2014-10-07 19:29:54 UTC) #8
James Cook
Looking better. https://codereview.chromium.org/631203003/diff/80001/content/shell/browser/shell_browser_context.h File content/shell/browser/shell_browser_context.h (right): https://codereview.chromium.org/631203003/diff/80001/content/shell/browser/shell_browser_context.h#newcode15 content/shell/browser/shell_browser_context.h:15: #include "content/shell/browser/shell_url_request_context_getter.h" You should be able to ...
6 years, 2 months ago (2014-10-07 20:14:17 UTC) #9
Xi Han
James: I am not sure about the part of removing member variable ignore_certificate_errors_, whether my ...
6 years, 2 months ago (2014-10-07 21:10:18 UTC) #11
Xi Han
yoz@chromium.org: Please review changes in: -extensions/browser -extensions/common -extensions/extensions.gyp Thanks!
6 years, 2 months ago (2014-10-07 21:48:04 UTC) #13
James Cook
https://codereview.chromium.org/631203003/diff/80001/content/shell/browser/shell_browser_context.h File content/shell/browser/shell_browser_context.h (right): https://codereview.chromium.org/631203003/diff/80001/content/shell/browser/shell_browser_context.h#newcode15 content/shell/browser/shell_browser_context.h:15: #include "content/shell/browser/shell_url_request_context_getter.h" On 2014/10/07 21:10:18, hanxi wrote: > On ...
6 years, 2 months ago (2014-10-07 22:38:45 UTC) #14
Yoyo Zhou
LGTM after James's comments are addressed
6 years, 2 months ago (2014-10-07 23:31:56 UTC) #15
Xi Han
James: PTAL. Thanks! https://codereview.chromium.org/631203003/diff/80001/content/shell/browser/shell_browser_context.h File content/shell/browser/shell_browser_context.h (right): https://codereview.chromium.org/631203003/diff/80001/content/shell/browser/shell_browser_context.h#newcode15 content/shell/browser/shell_browser_context.h:15: #include "content/shell/browser/shell_url_request_context_getter.h" There are two set_url_request_context_getter() ...
6 years, 2 months ago (2014-10-08 13:48:48 UTC) #16
James Cook
LGTM with one tiny nit Thanks for getting this working! https://codereview.chromium.org/631203003/diff/140001/extensions/shell/browser/shell_browser_context.cc File extensions/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/631203003/diff/140001/extensions/shell/browser/shell_browser_context.cc#newcode21 ...
6 years, 2 months ago (2014-10-08 14:21:22 UTC) #17
Xi Han
creis@chromium.org: Please review changes in: -content/shell/browser. Thanks! https://codereview.chromium.org/631203003/diff/140001/extensions/shell/browser/shell_browser_context.cc File extensions/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/631203003/diff/140001/extensions/shell/browser/shell_browser_context.cc#newcode21 extensions/shell/browser/shell_browser_context.cc:21: return cmd_line->HasSwitch(::switches::kIgnoreCertificateErrors) ...
6 years, 2 months ago (2014-10-08 14:29:15 UTC) #19
Xi Han
+avi@chromium.org: Please review changes in: -content/shell/browser Thanks!
6 years, 2 months ago (2014-10-08 15:51:12 UTC) #21
Avi (use Gerrit)
content/shell/browser lgtm
6 years, 2 months ago (2014-10-08 15:58:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631203003/160001
6 years, 2 months ago (2014-10-08 16:01:23 UTC) #24
commit-bot: I haz the power
Failed to apply patch for extensions/common/switches.cc: While running git apply --index -3 -p1; error: patch ...
6 years, 2 months ago (2014-10-08 17:07:21 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631203003/180001
6 years, 2 months ago (2014-10-08 17:31:52 UTC) #29
commit-bot: I haz the power
Failed to apply the patch.
6 years, 2 months ago (2014-10-08 19:55:44 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631203003/200001
6 years, 2 months ago (2014-10-08 20:10:37 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_triggered_tests/builds/56250) linux_chromium_compile_dbg_32 on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32/builds/987) linux_chromium_rel_swarming ...
6 years, 2 months ago (2014-10-08 21:15:21 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631203003/200001
6 years, 2 months ago (2014-10-09 00:21:52 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_triggered_tests/builds/56250)
6 years, 2 months ago (2014-10-09 01:46:30 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631203003/200001
6 years, 2 months ago (2014-10-09 02:37:49 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/66335)
6 years, 2 months ago (2014-10-09 03:47:15 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631203003/200001
6 years, 2 months ago (2014-10-09 11:37:32 UTC) #45
commit-bot: I haz the power
Committed patchset #7 (id:200001) as 4368fee5985cd6dfca1b04a7c62c7913297a1199
6 years, 2 months ago (2014-10-09 13:27:21 UTC) #46
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 13:28:17 UTC) #47
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3328d99286e14e8c31b922c995fb7de7804bba69
Cr-Commit-Position: refs/heads/master@{#298862}

Powered by Google App Engine
This is Rietveld 408576698