| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
|
| index 424cfda10bcb01386fbbc7b38e31ab672dcf291b..8f812bb76bd2b2450057312fff239dde034fe11a 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
|
| @@ -353,8 +353,7 @@ Background.prototype = {
|
| }
|
| break;
|
| case 'showOptionsPage':
|
| - var optionsPage = {url: 'chromevox/background/options.html'};
|
| - chrome.tabs.create(optionsPage);
|
| + chrome.runtime.openOptionsPage();
|
| break;
|
| case 'toggleChromeVoxVersion':
|
| var newMode;
|
| @@ -412,6 +411,14 @@ Background.prototype = {
|
| },
|
|
|
| /**
|
| + * Open the options page in a new tab.
|
| + */
|
| + showOptionsPage: function() {
|
| + var optionsPage = {url: 'chromevox/background/options.html'};
|
| + chrome.tabs.create(optionsPage);
|
| + },
|
| +
|
| + /**
|
| * Handles a braille command.
|
| * @param {!cvox.BrailleKeyEvent} evt
|
| * @param {!cvox.NavBraille} content
|
|
|