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

Unified Diff: chrome/browser/resources/print_preview/print_preview.js

Issue 2893003003: Print Preview: Merge NativeLayerStubs for tests (Closed)
Patch Set: Remove extra variable Created 3 years, 7 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/print_preview/print_preview.js
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
index 7551efbe5dea864e269ee76328c313bb84f208ca..149d93a3288db60959756e1414f48eddc9bb6e0a 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -55,7 +55,7 @@ cr.define('print_preview', function() {
* @type {!print_preview.NativeLayer}
* @private
*/
- this.nativeLayer_ = new print_preview.NativeLayer();
+ this.nativeLayer_ = print_preview.NativeLayer.getInstance();
/**
* Event target that contains information about the logged in user.
@@ -324,6 +324,12 @@ cr.define('print_preview', function() {
PrintPreview.prototype = {
__proto__: print_preview.Component.prototype,
+ /**
+ * @return {!print_preview.PreviewArea} The preview area. Used for tests.
+ */
+ getPreviewArea: function() {
+ return this.previewArea_;
+ },
/** Sets up the page and print preview by getting the printer list. */
initialize: function() {

Powered by Google App Engine
This is Rietveld 408576698