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

Unified Diff: chrome/browser/resources/options/chromeos/display_options.js

Issue 570503002: Compile chrome://settings, part 6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_4
Patch Set: fix asserts, rebase 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
Index: chrome/browser/resources/options/chromeos/display_options.js
diff --git a/chrome/browser/resources/options/chromeos/display_options.js b/chrome/browser/resources/options/chromeos/display_options.js
index 89ef3f370569a85fc123e8fef16d609b3c01659f..5c4c3125f145774b6e762b6cfcdce752da45751d 100644
--- a/chrome/browser/resources/options/chromeos/display_options.js
+++ b/chrome/browser/resources/options/chromeos/display_options.js
@@ -274,7 +274,8 @@ cr.define('options', function() {
return true;
e.preventDefault();
- return this.startDragging_(e.target, {x: e.pageX, y: e.pageY});
+ var target = assertInstanceof(e.target, HTMLElement);
+ return this.startDragging_(target, {x: e.pageX, y: e.pageY});
},
/**
@@ -292,7 +293,8 @@ cr.define('options', function() {
e.preventDefault();
var touch = e.touches[0];
this.lastTouchLocation_ = {x: touch.pageX, y: touch.pageY};
- return this.startDragging_(e.target, this.lastTouchLocation_);
+ var target = assertInstanceof(e.target, HTMLElement);
+ return this.startDragging_(target, this.lastTouchLocation_);
},
/**

Powered by Google App Engine
This is Rietveld 408576698