Chromium Code Reviews| 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 // This script is opened inside a <extensionoptions> guest view. To confirm that | |
| 6 // is has been successfully created, it adds {pass: true} to every extension | |
| 7 // Window and broadcasts a message to the extension using runtime.sendMessage(). | |
| 8 var windows = chrome.extension.getViews(); | |
| 9 for (var i = 0; i < windows.length; ++i) { | |
|
Devlin
2014/07/16 20:55:07
no brackets.
ericzeng
2014/07/16 22:27:38
Done.
| |
| 10 windows[i].pass = true; | |
| 11 } | |
| 12 chrome.runtime.sendMessage('hi'); | |
| OLD | NEW |