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

Side by Side Diff: chrome/test/data/extensions/hotword/test.js

Issue 587153002: Suppress the exception thrown when responding to message with no response callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « chrome/test/data/extensions/hotword/manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 });
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/hotword/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698