|
|
Created:
4 years, 4 months ago by Devlin Modified:
4 years, 4 months ago CC:
chromium-reviews, chromium-apps-reviews_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, extensions-reviews_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[Extensions] Remove ExtensionFunction usage of RenderViewHost
RenderViewHost is deprecated. Most ExtensionFunctions were updated
awhile back, but there were still some lingering ones. It looks like
one more (zooming in the file manager) can be safely removed.
BUG=498017
Committed: https://crrev.com/17f4094d5716c5c7b98031103a7d84c1474b28ab
Cr-Commit-Position: refs/heads/master@{#412536}
Patch Set 1 : ; #Patch Set 2 : Create ZoomController #Patch Set 3 : fix #
Total comments: 2
Patch Set 4 : Rebase #
Messages
Total messages: 48 (30 generated)
The CQ bit was checked by rdevlin.cronin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by rdevlin.cronin@chromium.org to run a CQ dry run
Patchset #1 (id:1) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
rdevlin.cronin@chromium.org changed reviewers: + dbeam@chromium.org, hirono@chromium.org
+hirono and dbeam. hirono@, mind taking a look? dbeam@ (as an owner of components/zoom) can you confirm that this is a reasonable replacement? From diving a bit into zoom code, it seems fine, but I wanna double check.
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/08/03 22:39:19, Dan Beam wrote: > lgtm I locally cherry-picked the change. It seems I cannot change zoom level in Files app after applying the patch.
The CQ bit was checked by rdevlin.cronin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by rdevlin.cronin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/08/04 06:59:02, hirono wrote: > I locally cherry-picked the change. It seems I cannot change zoom level in Files > app after applying the patch. Ah, apparently it's untested. Ensuring we create a zoom controller for app windows makes it work. Please take another look.
rdevlin.cronin@chromium.org changed reviewers: + lazyboy@chromium.org
+lazyboy for guestview stuff
lazyboy@chromium.org changed reviewers: + wjmaclean@chromium.org
+James who knows more about page zoom in guestview...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
LGTM, with a small question. https://codereview.chromium.org/2204393002/diff/60001/extensions/browser/gues... File extensions/browser/guest_view/web_view/web_view_guest.cc (right): https://codereview.chromium.org/2204393002/diff/60001/extensions/browser/gues... extensions/browser/guest_view/web_view/web_view_guest.cc:447: return !did_set_explicit_zoom_; This part of the CL seems a bit orthogonal to removing the reference to RenderViewHost, though I suppose it's necessary to prevent the new pathway through WebContents from stomping on the guest's zoom level if it was set separately, is that right?
https://codereview.chromium.org/2204393002/diff/60001/extensions/browser/gues... File extensions/browser/guest_view/web_view/web_view_guest.cc (right): https://codereview.chromium.org/2204393002/diff/60001/extensions/browser/gues... extensions/browser/guest_view/web_view/web_view_guest.cc:447: return !did_set_explicit_zoom_; On 2016/08/11 13:30:03, wjmaclean wrote: > This part of the CL seems a bit orthogonal to removing the reference to > RenderViewHost, though I suppose it's necessary to prevent the new pathway > through WebContents from stomping on the guest's zoom level if it was set > separately, is that right? Yep. Before AppWindows didn't have a ZoomController created, so we early-outed in GuestViewBase. Now that they have one, we need to make sure that we don't track the embedder's zoom (e.g. when navigation commits or when the embedder zoom adjusts). It seems like this was the desired behavior all along, and that previously we just lucked out by there not being a zoom controller in the embedder.
On 2016/08/11 15:21:11, Devlin wrote: > https://codereview.chromium.org/2204393002/diff/60001/extensions/browser/gues... > File extensions/browser/guest_view/web_view/web_view_guest.cc (right): > > https://codereview.chromium.org/2204393002/diff/60001/extensions/browser/gues... > extensions/browser/guest_view/web_view/web_view_guest.cc:447: return > !did_set_explicit_zoom_; > On 2016/08/11 13:30:03, wjmaclean wrote: > > This part of the CL seems a bit orthogonal to removing the reference to > > RenderViewHost, though I suppose it's necessary to prevent the new pathway > > through WebContents from stomping on the guest's zoom level if it was set > > separately, is that right? > > Yep. Before AppWindows didn't have a ZoomController created, so we early-outed > in GuestViewBase. Now that they have one, we need to make sure that we don't > track the embedder's zoom (e.g. when navigation commits or when the embedder > zoom adjusts). It seems like this was the desired behavior all along, and that > previously we just lucked out by there not being a zoom controller in the > embedder. That's good to know; thanks for following up!
On 2016/08/11 00:10:25, Devlin (ooo aug12) wrote: > On 2016/08/04 06:59:02, hirono wrote: > > I locally cherry-picked the change. It seems I cannot change zoom level in > Files > > app after applying the patch. > > Ah, apparently it's untested. Ensuring we create a zoom controller for app > windows makes it work. Please take another look. friendly ping -> hirono@
lgtm! Sorry for not replying soon. I was on vacation.
The CQ bit was checked by rdevlin.cronin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== [Extensions] Remove a usage of RenderViewHost RenderViewHost is deprecated. Most ExtensionFunctions were updated awhile back, but there were still some lingering ones. It looks like one more (zooming in the file manager) can be safely removed. BUG=498017 ========== to ========== [Extensions] Remove ExtensionFunction usage of RenderViewHost RenderViewHost is deprecated. Most ExtensionFunctions were updated awhile back, but there were still some lingering ones. It looks like one more (zooming in the file manager) can be safely removed. BUG=498017 ==========
The CQ bit was checked by rdevlin.cronin@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dbeam@chromium.org, hirono@chromium.org, wjmaclean@chromium.org Link to the patchset: https://codereview.chromium.org/2204393002/#ps80001 (title: "Rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
rdevlin.cronin@chromium.org changed reviewers: + benwells@chromium.org
+Ben for chrome/browser/ui/apps.
lgtm
The CQ bit was checked by rdevlin.cronin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== [Extensions] Remove ExtensionFunction usage of RenderViewHost RenderViewHost is deprecated. Most ExtensionFunctions were updated awhile back, but there were still some lingering ones. It looks like one more (zooming in the file manager) can be safely removed. BUG=498017 ========== to ========== [Extensions] Remove ExtensionFunction usage of RenderViewHost RenderViewHost is deprecated. Most ExtensionFunctions were updated awhile back, but there were still some lingering ones. It looks like one more (zooming in the file manager) can be safely removed. BUG=498017 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== [Extensions] Remove ExtensionFunction usage of RenderViewHost RenderViewHost is deprecated. Most ExtensionFunctions were updated awhile back, but there were still some lingering ones. It looks like one more (zooming in the file manager) can be safely removed. BUG=498017 ========== to ========== [Extensions] Remove ExtensionFunction usage of RenderViewHost RenderViewHost is deprecated. Most ExtensionFunctions were updated awhile back, but there were still some lingering ones. It looks like one more (zooming in the file manager) can be safely removed. BUG=498017 Committed: https://crrev.com/17f4094d5716c5c7b98031103a7d84c1474b28ab Cr-Commit-Position: refs/heads/master@{#412536} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/17f4094d5716c5c7b98031103a7d84c1474b28ab Cr-Commit-Position: refs/heads/master@{#412536} |