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 0e4db31c771ca8a4f0e3a31b87ec5f42376ff495..0af058013d62f652c53da2d0adc55018169df18b 100644 |
--- a/chrome/browser/ui/zoom/zoom_controller.cc |
+++ b/chrome/browser/ui/zoom/zoom_controller.cc |
@@ -256,6 +256,12 @@ void ZoomController::DidNavigateMainFrame( |
UpdateState(std::string()); |
} |
+void ZoomController::WebContentsDestroyed() { |
+ // At this point we should no longer be sending any zoom events with this |
+ // WebContents. |
+ observers_.Clear(); |
+} |
+ |
void ZoomController::OnZoomLevelChanged( |
const content::HostZoomMap::ZoomLevelChange& change) { |
UpdateState(change.host); |