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

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: Rebase to r292920. 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 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
« 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