OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Send a WAKE_UP command to the hotword helper extension. |
| 6 chrome.runtime.sendMessage( |
| 7 'dnhpdliibojhegemfjheidglijccjfmc', |
| 8 {type: 'wu'}); |
| 9 |
| 10 // Assume messages are delivered in-order. In this case, this message will be |
| 11 // handled after the previous one, and indicates the test case has completed. |
| 12 chrome.runtime.sendMessage( |
| 13 'dnhpdliibojhegemfjheidglijccjfmc', |
| 14 {type: 'wu'}, |
| 15 function() { |
| 16 chrome.test.sendMessage("done"); |
| 17 }); |
OLD | NEW |