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 fd9a3dc1d679adad6412a23ae3f2fc231a9b2b67..95ab757f3f7d5bf75cc7c3956e7045ae7fb3afae 100644 |
--- a/chrome/browser/ui/zoom/zoom_controller.cc |
+++ b/chrome/browser/ui/zoom/zoom_controller.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/ui/zoom/zoom_controller.h" |
+#include "chrome/browser/ui/sad_tab.h" |
#include "chrome/browser/ui/zoom/zoom_event_manager.h" |
#include "chrome/browser/ui/zoom/zoom_observer.h" |
#include "content/public/browser/host_zoom_map.h" |
@@ -80,7 +81,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()) |
return false; |
// Store extension data so that |extension| can be attributed when the zoom |