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

Issue 956313002: ChromeContentRendererClient should not rely on Dispatcher::is_extension_process (Closed)

Created:
5 years, 9 months ago by João Eiras
Modified:
5 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ChromeContentRendererClient should not rely on Dispatcher::is_extension_process The extensions::Dispatcher::is_extension_process flag is set for both the standalone extensions renderer and single process mode. This caused ChromeContentRendererClient to act differently in single process mode, like returning true from ShouldFork for any navigation started by blink, which would cause a new WebView to be created for each navigation. BUG=462210 Committed: https://crrev.com/874b1b9796998d7d8bf4d27ed1369251bd868d13 Cr-Commit-Position: refs/heads/master@{#318938}

Patch Set 1 #

Total comments: 4

Patch Set 2 : removing is_extension_process from extensions::Dispatcher #

Patch Set 3 : missing ifdefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -12 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 4 chunks +9 lines, -3 lines 0 comments Download
M extensions/renderer/dispatcher.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
João Eiras
5 years, 9 months ago (2015-02-26 14:09:30 UTC) #2
João Eiras
The behavior of checking only the extension_process flag causes, for instance, ShouldFork to dispatch a ...
5 years, 9 months ago (2015-02-26 14:11:25 UTC) #3
Lei Zhang
I actually don't know how well extensions work at all in single process mode. +kalman ...
5 years, 9 months ago (2015-02-26 22:17:58 UTC) #5
not at google - send to devlin
https://codereview.chromium.org/956313002/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/956313002/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode286 chrome/renderer/chrome_content_renderer_client.cc:286: bool IsSingleProcess() { On 2015/02/26 22:17:58, Lei Zhang wrote: ...
5 years, 9 months ago (2015-02-26 22:25:03 UTC) #6
João Eiras
> I don't know this code that well either, but note that in dispatcher.cc we ...
5 years, 9 months ago (2015-02-27 01:30:40 UTC) #7
not at google - send to devlin
On 2015/02/27 01:30:40, João Eiras wrote: > > I don't know this code that well ...
5 years, 9 months ago (2015-02-27 01:34:28 UTC) #8
João Eiras
Forget to tell. Without this fix any new navigation to a new url causes a ...
5 years, 9 months ago (2015-02-27 14:00:16 UTC) #10
João Eiras
Devlin and Fady, after reading the conversation, waht's your opinion on extensions::Dispatcher::is_extension_process ? Thanks.
5 years, 9 months ago (2015-02-27 14:01:21 UTC) #11
Devlin
Each reviewer you add can boost the complexity of reviewing a change. It's not really ...
5 years, 9 months ago (2015-02-27 16:54:32 UTC) #12
João Eiras
https://codereview.chromium.org/956313002/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/956313002/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode286 chrome/renderer/chrome_content_renderer_client.cc:286: bool IsSingleProcess() { On 2015/02/27 16:54:32, Devlin wrote: > ...
5 years, 9 months ago (2015-03-02 17:02:49 UTC) #13
not at google - send to devlin
lgtm
5 years, 9 months ago (2015-03-02 17:51:16 UTC) #14
jochen (gone - plz use gerrit)
lgtm
5 years, 9 months ago (2015-03-03 13:53:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/956313002/20001
5 years, 9 months ago (2015-03-03 15:26:34 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/48281)
5 years, 9 months ago (2015-03-03 16:01:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/956313002/40001
5 years, 9 months ago (2015-03-03 17:46:17 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-03 20:44:09 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 20:45:04 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/874b1b9796998d7d8bf4d27ed1369251bd868d13
Cr-Commit-Position: refs/heads/master@{#318938}

Powered by Google App Engine
This is Rietveld 408576698