| 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;
|
|
|