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

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: Remove tests. 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 | chrome/browser/ui/webui/app_list/start_page_browsertest.js » ('j') | 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..5138dba7957a7d21a64501428817553df0caab7b 100644
--- a/chrome/browser/resources/app_list/start_page.js
+++ b/chrome/browser/resources/app_list/start_page.js
@@ -6,13 +6,9 @@
* @fileoverview App launcher start page implementation.
*/
-<include src="speech_manager.js">
-
cr.define('appList.startPage', function() {
'use strict';
- var speechManager = null;
-
// The element containing the current Google Doodle.
var doodle = null;
@@ -24,7 +20,6 @@ cr.define('appList.startPage', function() {
* Initialize the page.
*/
function initialize() {
- speechManager = new speech.SpeechManager();
chrome.send('initialize');
}
@@ -34,7 +29,6 @@ cr.define('appList.startPage', function() {
* @param {boolean} enabled Whether the plugin is enabled or not.
*/
function setHotwordEnabled(enabled) {
- speechManager.setHotwordEnabled(enabled);
}
/**
@@ -42,7 +36,6 @@ cr.define('appList.startPage', function() {
* @param {string} arch The architecture.
*/
function setNaclArch(arch) {
- speechManager.setNaclArch(arch);
}
/**
@@ -51,8 +44,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 +126,6 @@ cr.define('appList.startPage', function() {
* Invoked when the app-list bubble is hidden.
*/
function onAppListHidden() {
- speechManager.onHidden();
}
/**
@@ -143,7 +133,6 @@ cr.define('appList.startPage', function() {
* state.
*/
function toggleSpeechRecognition() {
- speechManager.toggleSpeechRecognition();
}
return {
« no previous file with comments | « no previous file | chrome/browser/ui/webui/app_list/start_page_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698