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

Side by Side Diff: chrome/test/data/extensions/api_test/management/launch_on_install/background.js

Issue 8763008: Move yet another block of tests to manifest_version 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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) 2011 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.
1 4
2 chrome.management.onInstalled.addListener(function(extensionInfo) { 5 chrome.management.onInstalled.addListener(function(extensionInfo) {
3 if (!extensionInfo.isApp) { 6 if (!extensionInfo.isApp) {
4 console.log("Can't launch " + extensionInfo.name + " (" + 7 console.log("Can't launch " + extensionInfo.name + " (" +
5 extensionInfo.id + "): Not an app."); 8 extensionInfo.id + "): Not an app.");
6 return; 9 return;
7 } 10 }
8 console.log("Launch " + extensionInfo.name + " (" + 11 console.log("Launch " + extensionInfo.name + " (" +
9 extensionInfo.id + ")"); 12 extensionInfo.id + ")");
10 13
11 chrome.management.launchApp(extensionInfo.id, function() { 14 chrome.management.launchApp(extensionInfo.id, function() {
12 chrome.test.sendMessage("launched app"); 15 chrome.test.sendMessage("launched app");
13 }); 16 });
14 17
15 }); 18 });
16 19
17 chrome.test.sendMessage("launcher loaded"); 20 chrome.test.sendMessage("launcher loaded");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698