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

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

Issue 617973002: Remove assert() from getChildElement() to fix the bug caused by https://chromiumcodereview.appspot.… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@true_master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/component.js
diff --git a/chrome/browser/resources/print_preview/component.js b/chrome/browser/resources/print_preview/component.js
index 3437a31a1c6fb62622f60473bdd2c213cb333d97..acf49640d67be0a9406af1391c524ae37b840fe8 100644
--- a/chrome/browser/resources/print_preview/component.js
+++ b/chrome/browser/resources/print_preview/component.js
@@ -154,12 +154,12 @@ cr.define('print_preview', function() {
* @param {string} query Selector query to select an element starting from
* the component's root element using a depth first search for the first
* element that matches the query.
- * @return {!HTMLElement} Element selected by the given query.
+ * @return {HTMLElement} Element selected by the given query.
* TODO(alekseys): Check all call sites and rename this function to
* something like getRequiredChildElement.
*/
getChildElement: function(query) {
- return assert(this.element_.querySelector(query));
+ return this.element_.querySelector(query);
},
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698