| 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 a2e8ce9376afbf83f5510f2cf92bb6c349d5d1d3..b17f3a99e4e188a114cdf5dc50daaf18fe26a715 100644
|
| --- a/chrome/browser/ui/zoom/zoom_controller.cc
|
| +++ b/chrome/browser/ui/zoom/zoom_controller.cc
|
| @@ -257,6 +257,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);
|
|
|