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

Unified Diff: chrome/browser/resources/pdf/zoom_manager.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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
Index: chrome/browser/resources/pdf/zoom_manager.js
diff --git a/chrome/browser/resources/pdf/zoom_manager.js b/chrome/browser/resources/pdf/zoom_manager.js
index 5ed2c74ac3941620ad59ab987f5b3b3cf598b0aa..eec9115cd841d4ee146bdd702786bda155fe9333 100644
--- a/chrome/browser/resources/pdf/zoom_manager.js
+++ b/chrome/browser/resources/pdf/zoom_manager.js
@@ -145,16 +145,16 @@ class ActiveZoomManager extends ZoomManager {
if (this.floatingPointEquals(this.browserZoom_, zoom))
return;
- this.changingBrowserZoom_ = this.setBrowserZoomFunction_(zoom).then(
- function() {
- this.browserZoom_ = zoom;
- this.changingBrowserZoom_ = null;
-
- // The extension's zoom level may have changed while the browser zoom
- // change was in progress. We call back into onPdfZoomChange to ensure the
- // browser zoom is up to date.
- this.onPdfZoomChange();
- }.bind(this));
+ this.changingBrowserZoom_ =
+ this.setBrowserZoomFunction_(zoom).then(function() {
+ this.browserZoom_ = zoom;
+ this.changingBrowserZoom_ = null;
+
+ // The extension's zoom level may have changed while the browser zoom
+ // change was in progress. We call back into onPdfZoomChange to ensure
+ // the browser zoom is up to date.
+ this.onPdfZoomChange();
+ }.bind(this));
}
/**

Powered by Google App Engine
This is Rietveld 408576698