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

Unified Diff: chrome/browser/ui/zoom/zoom_controller.cc

Issue 529993002: Use IsRenderViewLive() to test for SadTab in ZoomController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/zoom/zoom_controller_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/zoom/zoom_controller.cc
diff --git a/chrome/browser/ui/zoom/zoom_controller.cc b/chrome/browser/ui/zoom/zoom_controller.cc
index aff4a84a98bae5800e4813b32294713503723758..c391f9e68a55ef22707dbf5f3ba88ef8d4967542 100644
--- a/chrome/browser/ui/zoom/zoom_controller.cc
+++ b/chrome/browser/ui/zoom/zoom_controller.cc
@@ -93,7 +93,7 @@ bool ZoomController::SetZoomLevelByExtension(
// Cannot zoom in disabled mode. Also, don't allow changing zoom level on
// a crashed tab.
if (zoom_mode_ == ZOOM_MODE_DISABLED ||
- !web_contents()->GetRenderProcessHost()->HasConnection())
+ !web_contents()->GetRenderViewHost()->IsRenderViewLive())
Fady Samuel 2014/09/02 14:27:24 nit: indentation is off
wjmaclean 2014/09/02 14:42:54 Done.
return false;
// Store extension data so that |extension| can be attributed when the zoom
« no previous file with comments | « no previous file | chrome/browser/ui/zoom/zoom_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698