OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * @fileoverview This extension manages communications between Chrome, | 8 * @fileoverview This extension manages communications between Chrome, |
9 * Google.com pages and the Chrome Hotword extension. | 9 * Google.com pages and the Chrome Hotword extension. |
10 * | 10 * |
11 * This helper extension is required due to the depoyment plan for Chrome M34: | 11 * This helper extension is required due to the depoyment plan for Chrome M34: |
12 * | 12 * |
13 * - The hotword extension will be distributed as an externally loaded | 13 * - The hotword extension will be distributed as an externally loaded |
14 * component extension. | 14 * component extension. |
15 * - Settings for enabling and disabling the hotword extension has moved to | 15 * - Settings for enabling and disabling the hotword extension has moved to |
16 * Chrome settings. | 16 * Chrome settings. |
17 * - Newtab page is served via chrome://newtab/ | 17 * - NewTab page is served via chrome://newtab/ |
18 * | 18 * |
19 */ | 19 */ |
20 | 20 |
21 | 21 |
22 | 22 |
23 /** @constructor */ | 23 /** @constructor */ |
24 var OptInManager = function() {}; | 24 var OptInManager = function() {}; |
25 | 25 |
26 | 26 |
27 /** | 27 /** |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // TODO(rlp): Possibly remove the next line. It's proably not used, but | 223 // TODO(rlp): Possibly remove the next line. It's proably not used, but |
224 // leaving for now to be safe. We should remove it once all messsage | 224 // leaving for now to be safe. We should remove it once all messsage |
225 // relaying is removed form the content scripts. | 225 // relaying is removed form the content scripts. |
226 chrome.runtime.onMessage.addListener(this.handleMessage_.bind(this)); | 226 chrome.runtime.onMessage.addListener(this.handleMessage_.bind(this)); |
227 chrome.runtime.onMessageExternal.addListener( | 227 chrome.runtime.onMessageExternal.addListener( |
228 this.handleMessage_.bind(this)); | 228 this.handleMessage_.bind(this)); |
229 }; | 229 }; |
230 | 230 |
231 | 231 |
232 new OptInManager().initialize(); | 232 new OptInManager().initialize(); |
OLD | NEW |