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

Unified Diff: chrome/test/data/extensions/activity_log/options.js

Issue 12517011: Added activity logging for ext APIs with custom bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lint fix Created 7 years, 9 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/activity_log/options.js
diff --git a/chrome/test/data/extensions/activity_log/options.js b/chrome/test/data/extensions/activity_log/options.js
index 1d3ab81558746607fe0753ec7d1dca9de39b4a89..6c658e83c3e8a6a7b87b9e63034c8da85862ad13 100644
--- a/chrome/test/data/extensions/activity_log/options.js
+++ b/chrome/test/data/extensions/activity_log/options.js
@@ -48,6 +48,13 @@ function makeApiCall() {
setCompleted('makeApiCall');
}
+// Makes an API call that has a custom binding.
+function makeSpecialApiCalls() {
+ var url = chrome.extension.getURL("image/cat.jpg");
+ var noparam = chrome.extension.getViews();
+ setCompleted('makeSpecialApiCalls');
+}
+
// Makes an API call that the extension doesn't have permission for.
function makeBlockedApiCall() {
try {
@@ -158,6 +165,7 @@ function doWebRequestModifications() {
// Attach the tests to buttons.
function setupEvents() {
$('api_call').addEventListener('click', makeApiCall);
+ $('special_call').addEventListener('click', makeSpecialApiCalls);
$('blocked_call').addEventListener('click', makeBlockedApiCall);
$('inject_cs').addEventListener('click', injectContentScript);
$('inject_blob').addEventListener('click', injectScriptBlob);

Powered by Google App Engine
This is Rietveld 408576698