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

Unified Diff: chrome/test/data/extensions/api_test/page_action/old_api/background.js

Issue 472333002: Remove deprecated chrome.pageActions api functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histograms.xml Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/page_action/old_api/background.js
diff --git a/chrome/test/data/extensions/api_test/page_action/old_api/background.js b/chrome/test/data/extensions/api_test/page_action/old_api/background.js
deleted file mode 100644
index 792ebad0c4eb1e1a7d5acfb0d965df36ae11f90a..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/page_action/old_api/background.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright (c) 2011 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.
-
-chrome.pageActions["action"].addListener(function(actionId, info) {
- if (actionId == "action" && typeof(info.tabId) == "number" &&
- typeof(info.tabUrl) == "string" && info.button == 1) {
- chrome.test.notifyPass();
- } else {
- chrome.test.notifyFail("pageActions listener failed");
- }
-});
-
-chrome.test.notifyPass();

Powered by Google App Engine
This is Rietveld 408576698