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

Unified Diff: chrome/browser/resources/app_list/start_page.js

Issue 966983003: Delete all uses of SpeechManager from the app list start page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/app_list/start_page.js
diff --git a/chrome/browser/resources/app_list/start_page.js b/chrome/browser/resources/app_list/start_page.js
index c46b0cea177babbee7bc4854a3aed71a9f8792ca..2ed99f26e764e16bfe4c87e8cbdd2f6fac497e9b 100644
--- a/chrome/browser/resources/app_list/start_page.js
+++ b/chrome/browser/resources/app_list/start_page.js
@@ -11,8 +11,6 @@
cr.define('appList.startPage', function() {
'use strict';
- var speechManager = null;
-
// The element containing the current Google Doodle.
var doodle = null;
@@ -24,7 +22,6 @@ cr.define('appList.startPage', function() {
* Initialize the page.
*/
function initialize() {
- speechManager = new speech.SpeechManager();
chrome.send('initialize');
}
@@ -34,7 +31,6 @@ cr.define('appList.startPage', function() {
* @param {boolean} enabled Whether the plugin is enabled or not.
*/
function setHotwordEnabled(enabled) {
- speechManager.setHotwordEnabled(enabled);
}
/**
@@ -42,7 +38,6 @@ cr.define('appList.startPage', function() {
* @param {string} arch The architecture.
*/
function setNaclArch(arch) {
- speechManager.setNaclArch(arch);
}
/**
@@ -51,8 +46,6 @@ cr.define('appList.startPage', function() {
* @param {boolean} hotwordEnabled Whether the hotword is enabled or not.
*/
function onAppListShown(hotwordEnabled, legacySpeechEnabled) {
- if (legacySpeechEnabled)
- speechManager.onShown(hotwordEnabled);
chrome.send('appListShown', [this.doodle != null]);
}
@@ -135,7 +128,6 @@ cr.define('appList.startPage', function() {
* Invoked when the app-list bubble is hidden.
*/
function onAppListHidden() {
- speechManager.onHidden();
}
/**
@@ -143,7 +135,6 @@ cr.define('appList.startPage', function() {
* state.
*/
function toggleSpeechRecognition() {
- speechManager.toggleSpeechRecognition();
}
return {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698