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

Side by Side Diff: chrome/test/data/extensions/activity_log_app/background.js

Issue 13726026: Added ActivityLog tests and associated bugfixes/extra logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wrapped line Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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
5 function recordDevice(device) { 4 function recordDevice(device) {
6 console.log("recordDevice"); 5 console.log("recordDevice");
7 } 6 }
8 7
9 chrome.app.runtime.onLaunched.addListener(function() { 8 chrome.app.runtime.onLaunched.addListener(function() {
10 chrome.app.window.create('window.html', {'width': 400,'height': 500}); 9 chrome.app.window.create('window.html', {'width': 400,'height': 500});
11 chrome.bluetooth.startDiscovery({deviceCallback: recordDevice}); 10 chrome.bluetooth.startDiscovery({deviceCallback: recordDevice});
12 chrome.bluetooth.stopDiscovery(); 11 chrome.bluetooth.stopDiscovery();
13 }); 12 });
13
14 chrome.runtime.onMessageExternal.addListener(
15 function(message, sender, response) {
16 response();
17 });
18
19 chrome.runtime.onConnectExternal.addListener(function(port) {
20 console.log("connected");
21 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698