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

Unified Diff: chrome/browser/resources/hotword/manager.js

Issue 1130763005: Don't start the hotword extension on Chrome startup if the user doesn't have hotwording enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment. Created 5 years, 7 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/resources/hotword/state_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/hotword/manager.js
diff --git a/chrome/browser/resources/hotword/manager.js b/chrome/browser/resources/hotword/manager.js
index d186a3f424b2ef9d7dc615277487fce700c69553..54f3fcecef89d432eb2cc2c7a0ce443ed0e1d548 100644
--- a/chrome/browser/resources/hotword/manager.js
+++ b/chrome/browser/resources/hotword/manager.js
@@ -24,11 +24,6 @@
var launcherManager = new hotword.LauncherManager(stateManager);
var trainingManager = new hotword.TrainingManager(stateManager);
- // Detect Chrome startup and make sure we get a chance to run.
- chrome.runtime.onStartup.addListener(function() {
- stateManager.updateStatus();
- });
-
// Detect when hotword settings have changed.
chrome.hotwordPrivate.onEnabledChanged.addListener(function() {
stateManager.updateStatus();
« no previous file with comments | « no previous file | chrome/browser/resources/hotword/state_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698