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

Side by Side Diff: chrome/test/webdriver/test/infobar_browser_action_extension/bg.js

Issue 20081002: Remove experimental permission from infobars API and moving it to dev channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added license header Created 7 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 4
5 var g_infobarReady = false; 5 var g_infobarReady = false;
6 var g_callback = null; 6 var g_callback = null;
7 function waitForInfobar(callback) { 7 function waitForInfobar(callback) {
8 if (g_infobarReady) 8 if (g_infobarReady)
9 callback(); 9 callback();
10 g_callback = callback; 10 g_callback = callback;
11 } 11 }
12 12
13 chrome.tabs.getSelected(null, function(tab) { 13 chrome.tabs.getSelected(null, function(tab) {
14 chrome.experimental.infobars.show( 14 chrome.infobars.show(
15 {'tabId': tab.id, 'path': 'view_checks.html'}, function() { 15 {'tabId': tab.id, 'path': 'view_checks.html'}, function() {
16 g_infobarReady = true; 16 g_infobarReady = true;
17 if (g_callback) 17 if (g_callback)
18 g_callback(); 18 g_callback();
19 }); 19 });
20 }); 20 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698