| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Mocks for globals needed for loading background.js. |
| 6 |
| 7 function EMPTY() {} |
| 8 function buildTaskManager() { return {instrumentApiFunction: EMPTY}; } |
| 9 var instrumentApiFunction = EMPTY; |
| 10 var buildAttemptManager = EMPTY; |
| 11 var EMPTY_LISTENER = {addListener: EMPTY}; |
| 12 chrome['location'] = {onLocationUpdate: EMPTY_LISTENER}; |
| 13 chrome['notifications'] = { |
| 14 onButtonClicked: EMPTY_LISTENER, |
| 15 onClicked: EMPTY_LISTENER, |
| 16 onClosed: EMPTY_LISTENER |
| 17 }; |
| 18 chrome['omnibox'] = {onInputEntered: EMPTY_LISTENER}; |
| 19 chrome['runtime'] = { |
| 20 onInstalled: EMPTY_LISTENER, |
| 21 onStartup: EMPTY_LISTENER |
| 22 }; |
| 23 storage = {}; |
| OLD | NEW |