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

Unified Diff: chrome/browser/ui/browser_commands.cc

Issue 678343002: Default zoom was never read from chrome://settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uses IsAtDefaultZoom() to see whether a tab zoom has been reset Created 6 years, 2 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 | « chrome/browser/browser_commands_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 76c73ebf2732615c102e06616997d39516bce80f..cde4aef8a06e2ed0ef8af224c30f66b6e1aedc79 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -610,7 +610,7 @@ bool CanZoomOut(content::WebContents* contents) {
bool ActualSize(content::WebContents* contents) {
Alexei Svitkine (slow) 2014/10/29 03:44:25 I was suggesting we rename this function to also b
ZoomController* zoom_controller = ZoomController::FromWebContents(contents);
- return zoom_controller->GetZoomPercent() != 100.0f;
+ return !zoom_controller->IsAtDefaultZoom();
}
TabStripModelDelegate::RestoreTabType GetRestoreTabType(
« no previous file with comments | « chrome/browser/browser_commands_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698