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

Unified Diff: chrome/test/data/extensions/uitest/plugins/test.js

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/uitest/plugins/test.js
diff --git a/chrome/test/data/extensions/uitest/plugins/test.js b/chrome/test/data/extensions/uitest/plugins/test.js
deleted file mode 100644
index 10d5cd0f94024b766d5e0f2c99484850078e5875..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/uitest/plugins/test.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2012 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.
-
-function callTestInvokeDefault(plugin) {
- if (plugin.testInvokeDefault) {
- plugin.testInvokeDefault(function(str) {
- window.domAutomationController.send(true);
- });
- return;
- }
-
- // Try again in 100 ms.
- window.setTimeout(callTestInvokeDefault.bind(null, plugin), 100);
-}
-
-function testPluginWorks() {
- if (!navigator.mimeTypes['application/x-extension-test']) {
- window.domAutomationController.send(false);
- return;
- }
-
- var plug = document.getElementById("plugin");
- if (!plug) {
- window.domAutomationController.send(false);
- return;
- }
- callTestInvokeDefault(plug);
-}

Powered by Google App Engine
This is Rietveld 408576698