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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js

Issue 2687153004: Merge to m57: Ensure ChromeVox defaults to ChromeVox Next on upgrade (Closed)
Patch Set: Created 3 years, 10 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/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 da64659431a329a71c387d760519abdc9b841ff6..05348049cc4730b9ad073fb130daa59ac3f140bd 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
@@ -174,7 +174,7 @@ Background = function() {
}.bind(this));
// Record a metric with the mode we're in on startup.
- var useNext = localStorage['useNext'] !== 'false';
+ var useNext = localStorage['useClassic'] != 'true';
chrome.metricsPrivate.recordValue(
{ metricName: 'Accessibility.CrosChromeVoxNext',
type: chrome.metricsPrivate.MetricTypeType.HISTOGRAM_LINEAR,
@@ -231,7 +231,7 @@ Background.prototype = {
* @override
*/
getMode: function() {
- var useNext = localStorage['useNext'] !== 'false';
+ var useNext = localStorage['useClassic'] !== 'true';
var target;
if (!this.getCurrentRange()) {
@@ -356,7 +356,7 @@ Background.prototype = {
if (opt_setValue !== undefined)
useNext = opt_setValue;
else
- useNext = localStorage['useNext'] !== 'true';
+ useNext = localStorage['useClassic'] == 'true';
if (useNext) {
chrome.metricsPrivate.recordUserAction(
@@ -366,7 +366,7 @@ Background.prototype = {
'Accessibility.ChromeVox.ToggleNextOff');
}
- localStorage['useNext'] = useNext;
+ localStorage['useClassic'] = !useNext;
if (useNext)
this.setCurrentRangeToFocus_();
else

Powered by Google App Engine
This is Rietveld 408576698