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

Unified Diff: chrome/browser/resources/net_internals/view.js

Issue 5228004: Switch the about:gpu implementation from an about handler to dom_ui.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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/net_internals/view.js
===================================================================
--- chrome/browser/resources/net_internals/view.js (revision 68021)
+++ chrome/browser/resources/net_internals/view.js (working copy)
@@ -80,6 +80,8 @@
View.call(this);
this.node_ = document.getElementById(divId);
+ if(!this.node_)
+ throw new Error("Element " + divId + " not found");
arv (Not doing code reviews) 2010/12/08 17:55:19 use single quotes
nduca 2010/12/08 19:08:22 Done.
// Initialize the default values to those of the DIV.
this.width_ = this.node_.offsetWidth;

Powered by Google App Engine
This is Rietveld 408576698