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

Unified Diff: chrome/browser/resources/file_manager/js/image_editor/image_util.js

Issue 7453045: Moved ChromeOS Image Editor into an iframe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 9 years, 5 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/file_manager/js/image_editor/image_util.js
diff --git a/chrome/browser/resources/file_manager/js/image_editor/image_util.js b/chrome/browser/resources/file_manager/js/image_editor/image_util.js
index c9b8a7513fe151cc21f9814963faec4a532ad5b7..04f733d9179380ce08cc497eb433c5192561979c 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/image_util.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/image_util.js
@@ -14,11 +14,12 @@ ImageUtil.trace = (function() {
this.container_ = null;
}
+ PerformanceTrace.prototype.bindToDOM = function(container) {
+ this.container_ = container;
+ };
+
PerformanceTrace.prototype.report_ = function(key, value) {
- if (!this.container_) {
- this.container_ = document.getElementById('debug-output');
- if (!this.container_) return;
- }
+ if (!this.container_) return;
if (!(key in this.lines_)) {
var div = this.lines_[key] = document.createElement('div');
this.container_.appendChild(div);

Powered by Google App Engine
This is Rietveld 408576698