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

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

Issue 11414018: [zoom bubble] Add tests for ZoomController::UpdateState() handling empty hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: refactor Created 8 years, 1 month 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
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 21957eb4e0750ccfe09b7a6538d09ff7ef99b58b..0968c3b37f3eeaa42174c97518e73c9ae4983831 100644
--- a/chrome/browser/ui/zoom/zoom_controller.cc
+++ b/chrome/browser/ui/zoom/zoom_controller.cc
@@ -38,10 +38,7 @@ ZoomController::ZoomController(content::WebContents* web_contents)
UpdateState(std::string());
}
-ZoomController::~ZoomController() {
- default_zoom_level_.Destroy();
- registrar_.RemoveAll();
-}
+ZoomController::~ZoomController() {}
bool ZoomController::IsAtDefaultZoom() const {
return content::ZoomValuesEqual(web_contents()->GetZoomLevel(),

Powered by Google App Engine
This is Rietveld 408576698