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

Issue 2706933003: webapk: Avoid overwriting default CreationParams

Created:
3 years, 10 months ago by boliu
Modified:
3 years, 7 months ago
Reviewers:
CC:
chromium-reviews, cbentzel+watch_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, tburkard+watch_chromium.org, mdjones+watch_chromium.org, donnd+watch_chromium.org, jam, dominickn+watch_chromium.org, gavinp+prer_chromium.org, feature-vr-reviews_chromium.org, lizeb+watch-custom-tabs_chromium.org, pkotwicz+watch_chromium.org, agrieve+watch_chromium.org, ajwong+watch_chromium.org, darin-cc_chromium.org, zpeng+watch_chromium.org, ncarter (slow), alexmos, nasko
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

webapk: Avoid overwriting default CreationParams BUG=664530 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : cleanups #

Total comments: 3

Patch Set 5 : unregister #

Patch Set 6 : rebase 461342 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -147 lines) Patch
M base/android/java/src/org/chromium/base/process_launcher/ChildProcessCreationParams.java View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/WarmupManager.java View 1 2 3 4 5 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/WebContentsFactory.java View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 3 4 5 1 chunk +11 lines, -11 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 1 2 3 4 5 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java View 1 2 3 4 5 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabDelegateFactory.java View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java View 1 2 3 4 5 4 chunks +14 lines, -26 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/WarmupManagerTest.java View 1 2 3 4 5 4 chunks +11 lines, -5 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java View 1 2 3 4 5 9 chunks +22 lines, -13 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandlerTest.java View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/android/web_contents_factory.cc View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/test/android/javatests/src/org/chromium/chrome/test/util/PrerenderTestHelper.java View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/browsing_instance.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/browsing_instance.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/child_process_launcher.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/child_process_launcher_helper.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/child_process_launcher_helper.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/child_process_launcher_helper_android.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M content/browser/site_instance_impl.h View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M content/browser/site_instance_impl.cc View 1 2 3 8 chunks +22 lines, -14 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 1 2 3 4 5 18 chunks +37 lines, -21 lines 0 comments Download
M content/public/browser/site_instance.h View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
boliu
This is part 2. Part 1 review hasn't started yet so no rush yet I ...
3 years, 10 months ago (2017-02-23 00:51:30 UTC) #3
boliu
part 1 content/ got approved, and chrome/ is waiting on ted to come back so ...
3 years, 9 months ago (2017-02-24 19:12:14 UTC) #4
Charlie Reis
[CC nick, nasko, alexmos] On 2017/02/24 19:12:14, boliu wrote: > part 1 content/ got approved, ...
3 years, 9 months ago (2017-02-25 00:45:48 UTC) #6
boliu
3 years, 9 months ago (2017-02-25 00:55:11 UTC) #7
On 2017/02/25 00:45:48, Charlie Reis (slow) wrote:
> [CC nick, nasko, alexmos]
> 
> On 2017/02/24 19:12:14, boliu wrote:
> > part 1 content/ got approved, and chrome/ is waiting on ted to come back
> > 
> > so could start reviewing content/ here as well now :p
> 
> We should find a different way to do this, because SiteInstance and
> BrowsingInstance shouldn't have to know about an opaque, hard to
> understand/document child_process_param_id, plus there are bigger implications
> to customizing process creation.
> 
> The challenge appears to be that there aren't many ways to customize
> RenderProcess creation based on context, such as knowing a property about the
> WebContents it's for.  If your case can't be done in terms of BrowserContext,
> then we may need a different, more generalizable way of customizing the
renderer
> process.  This is not easy-- as you mention in https://crbug.com/#c17, the
> process reuse logic in RenderProcessHostImpl makes assumptions about which
> processes are safe to reuse, and customizations like this would violate them. 
> We would indiscriminately reuse processes without respect to the
customizations,
> once we're over the process limit.  I missed that implication at the time of
> your comment, but seeing it in code makes it clear it's a serious problem.  I
> don't think https://crbug.com/611203 would be sufficient.
> 
> (I'll also point out that BrowsingInstance != WebContents, if you're trying to
> make it WebContents-specific as noted in comment 11 of the bug. 
> BrowsingInstance includes popups and navigations that target new tabs as well.

> Not sure if you want those cases to share the customized behavior or not.)
> 
> One option: have you looked at RenderViewHostImpl::ComputeWebKitPrefs?  This
is
> one place that we send a set of preferences down to the renderer, and (for
> better or worse) it's not perfectly identical across all processes, and could
> take into account something about the RVH or WebContents.  (We apparently do
> extension-specific things here based on the SiteInstance's site URL, for
> example.)  This still faces the risks with process reuse, but at least it's in
> one place and we could try to tackle the reuse problem for everything at once.

> Would it be sufficient for what you need?

I'm gonna paste this over to the bug, and continue discussion there. Important
to have yaron on the discussion.

And I'll check if something like ComputeWebKitPrefs works.

Powered by Google App Engine
This is Rietveld 408576698