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

Unified Diff: chrome/test/data/extensions/management/launch_app/test.js

Issue 3416022: Revert 60357 - Merge 60334 - Add a launchApp method to extension management A... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/517/src/
Patch Set: Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/management/launch_app/test.js
===================================================================
--- chrome/test/data/extensions/management/launch_app/test.js (revision 60374)
+++ chrome/test/data/extensions/management/launch_app/test.js (working copy)
@@ -1,30 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-if (!chrome.management) {
- chrome.management = chrome.experimental.management;
-}
-
-window.onload = function() {
- chrome.management.getAll(function(items) {
- for (var i in items) {
- var item = items[i];
- if (item.name == "packaged_app") {
- chrome.management.launchApp(item.id);
- break;
- }
- if (item.name == "simple_extension") {
- // Try launching a non-app extension, which should fail.
- var expected_error = "Extension " + item.id + " is not an App";
- chrome.management.launchApp(item.id, function() {
- if (chrome.extension.lastError &&
- chrome.extension.lastError.message == expected_error) {
- chrome.test.sendMessage("got_expected_error");
- }
- });
- }
- }
- });
-};
-

Powered by Google App Engine
This is Rietveld 408576698