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

Issue 529993002: Use IsRenderViewLive() to test for SadTab in ZoomController. (Closed)

Created:
6 years, 3 months ago by wjmaclean
Modified:
6 years, 3 months ago
Reviewers:
Fady Samuel
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use IsRenderViewLive() to test for SadTab in ZoomController. In a previous attempt to prevent SadTab pages from being zoomable we attempted to use RenderProcessHost::HasConnection, but this fails in the case where a new tab can be started in the same RenderProcessHost while the SadTab is still visible. This CL switches to testing to see if the RenderView for the tab in question is live in order to avoid this problem. BUG=407562 Committed: https://crrev.com/5eeba9136acc2d74d7065249c4359d752b9258dd Cr-Commit-Position: refs/heads/master@{#292988}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments, fix test. #

Patch Set 3 : Rebase to r292920. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M chrome/browser/ui/zoom/zoom_controller.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_browsertest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_unittest.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
wjmaclean
A short CL to change the SadTab test used in ZoomController.
6 years, 3 months ago (2014-09-02 14:24:48 UTC) #2
Fady Samuel
lgtm with nit. https://codereview.chromium.org/529993002/diff/1/chrome/browser/ui/zoom/zoom_controller.cc File chrome/browser/ui/zoom/zoom_controller.cc (right): https://codereview.chromium.org/529993002/diff/1/chrome/browser/ui/zoom/zoom_controller.cc#newcode96 chrome/browser/ui/zoom/zoom_controller.cc:96: !web_contents()->GetRenderViewHost()->IsRenderViewLive()) nit: indentation is off
6 years, 3 months ago (2014-09-02 14:27:24 UTC) #3
wjmaclean
Patch for landing. https://codereview.chromium.org/529993002/diff/1/chrome/browser/ui/zoom/zoom_controller.cc File chrome/browser/ui/zoom/zoom_controller.cc (right): https://codereview.chromium.org/529993002/diff/1/chrome/browser/ui/zoom/zoom_controller.cc#newcode96 chrome/browser/ui/zoom/zoom_controller.cc:96: !web_contents()->GetRenderViewHost()->IsRenderViewLive()) On 2014/09/02 14:27:24, Fady Samuel ...
6 years, 3 months ago (2014-09-02 14:42:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/529993002/20001
6 years, 3 months ago (2014-09-02 14:44:21 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-09-02 15:02:24 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/60161) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/49053) android_arm64_dbg_recipe ...
6 years, 3 months ago (2014-09-02 15:05:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/529993002/40001
6 years, 3 months ago (2014-09-02 15:08:51 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001) as ca492c1b66388d6bae3f4ee5ddb9e2270be4e71d
6 years, 3 months ago (2014-09-02 20:27:55 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:20:28 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5eeba9136acc2d74d7065249c4359d752b9258dd
Cr-Commit-Position: refs/heads/master@{#292988}

Powered by Google App Engine
This is Rietveld 408576698