summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-08-14 11:38:45 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-08-14 17:16:47 +0000
commit3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859 (patch)
tree43cc572ba067417c7341db81f71ae7cc6e0fcc3e /chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
parentf61ab1ac7f855cd281809255c0aedbb1895e1823 (diff)
downloadqtwebengine-chromium-3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859.tar.gz
BASELINE: Update chromium to 45.0.2454.40
Change-Id: Id2121d9f11a8fc633677236c65a3e41feef589e4 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js')
-rw-r--r--chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js b/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
index daad1a48933..1f072648861 100644
--- a/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
+++ b/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
@@ -281,24 +281,20 @@ cvox.ChromeVoxBackground.prototype.addBridgeListener = function() {
switch (target) {
case 'OpenTab':
- var destination = new Object();
- destination.url = msg['url'];
+ var destination = {url: msg['url']};
chrome.tabs.create(destination);
break;
case 'KbExplorer':
- var explorerPage = new Object();
- explorerPage.url = 'chromevox/background/kbexplorer.html';
+ var explorerPage = {url: 'chromevox/background/kbexplorer.html'};
chrome.tabs.create(explorerPage);
break;
case 'HelpDocs':
- var helpPage = new Object();
- helpPage.url = 'http://chromevox.com/tutorial/index.html';
+ var helpPage = {url: 'http://chromevox.com/tutorial/index.html'};
chrome.tabs.create(helpPage);
break;
case 'Options':
if (action == 'open') {
- var optionsPage = new Object();
- optionsPage.url = 'chromevox/background/options.html';
+ var optionsPage = {url: 'chromevox/background/options.html'};
chrome.tabs.create(optionsPage);
}
break;