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

Unified Diff: chrome/browser/resources/print_preview/data/destination_match.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/print_preview/data/destination_match.js
diff --git a/chrome/browser/resources/print_preview/data/destination_match.js b/chrome/browser/resources/print_preview/data/destination_match.js
index 6a87f68103c245b0945ce755ac8bdc5cd7e08b1e..3152abe23426606ca90e05bf2d8763980d1223b6 100644
--- a/chrome/browser/resources/print_preview/data/destination_match.js
+++ b/chrome/browser/resources/print_preview/data/destination_match.js
@@ -18,7 +18,6 @@ cr.define('print_preview', function() {
*/
function DestinationMatch(
origins, idRegExp, displayNameRegExp, skipVirtualDestinations) {
-
/** @private {!Array<!print_preview.DestinationOrigin>} */
this.origins_ = origins;
@@ -48,9 +47,8 @@ cr.define('print_preview', function() {
* @return {boolean} Whether destination is the same as initial.
*/
matchIdAndOrigin: function(id, origin) {
- return this.matchOrigin(origin) &&
- !!this.idRegExp_ &&
- this.idRegExp_.test(id);
+ return this.matchOrigin(origin) && !!this.idRegExp_ &&
+ this.idRegExp_.test(id);
},
/**
@@ -89,13 +87,10 @@ cr.define('print_preview', function() {
destination.id);
}
return arrayContains(
- [print_preview.Destination.GooglePromotedId.DOCS],
- destination.id);
+ [print_preview.Destination.GooglePromotedId.DOCS], destination.id);
}
};
// Export
- return {
- DestinationMatch: DestinationMatch
- };
+ return {DestinationMatch: DestinationMatch};
});

Powered by Google App Engine
This is Rietveld 408576698