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

Unified Diff: chrome/browser/resources/ntp/apps.js

Issue 3342009: Remove old debug code from ntp. (Closed)
Patch Set: Created 10 years, 4 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 | « chrome/browser/resources/new_new_tab.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp/apps.js
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js
index 2c2484bb567642f9b754fe6bedd3c771b4f0060d..1c4594582652e108498ba7f2c9813826d016346c 100644
--- a/chrome/browser/resources/ntp/apps.js
+++ b/chrome/browser/resources/ntp/apps.js
@@ -34,16 +34,6 @@ var apps = {
* @this {!HTMLAnchorElement}
*/
handleClick_: function() {
- var launchType = '';
- var inputElements = document.querySelectorAll(
- '#apps-launch-control input');
- for (var i = 0, input; input = inputElements[i]; i++) {
- if (input.checked) {
- launchType = input.value;
- break;
- }
- }
-
// TODO(arv): Handle zoom?
var rect = this.getBoundingClientRect();
var cs = getComputedStyle(this);
@@ -55,7 +45,7 @@ var apps = {
var left = rect.left + ((rect.width - width) >> 1); // Integer divide by 2.
var top = rect.top + parseInt(cs.backgroundPositionY, 10);
- chrome.send('launchApp', [this.getAttribute("app_id"), launchType,
+ chrome.send('launchApp', [this.getAttribute("app_id"),
String(left), String(top),
String(width), String(height)]);
return false;
« no previous file with comments | « chrome/browser/resources/new_new_tab.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698