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

Unified Diff: chrome/test/data/extensions/api_test/screenlock_private/auth_type/test.js

Issue 562393002: Remove unused chrome.screenlockPrivate methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chrome/common/extensions/api/screenlock_private.idl ('k') | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/screenlock_private/auth_type/test.js
diff --git a/chrome/test/data/extensions/api_test/screenlock_private/auth_type/test.js b/chrome/test/data/extensions/api_test/screenlock_private/auth_type/test.js
index 05c199e70b68b9df52995acbee3f50d3112b49e7..880dee9d2b22e40905c2998a219b69c4eeeabee7 100644
--- a/chrome/test/data/extensions/api_test/screenlock_private/auth_type/test.js
+++ b/chrome/test/data/extensions/api_test/screenlock_private/auth_type/test.js
@@ -4,17 +4,9 @@
var authAttempted = false;
-function setAuthType() {
- chrome.screenlockPrivate.setAuthType('userClick');
- chrome.screenlockPrivate.getAuthType(function(authType) {
- chrome.test.assertEq('userClick', authType);
- chrome.test.sendMessage('attemptClickAuth');
- });
-}
-
chrome.screenlockPrivate.onChanged.addListener(function(locked) {
if (locked && !authAttempted) {
- setAuthType();
+ chrome.test.sendMessage('attemptClickAuth');
} else if (!locked && authAttempted) {
chrome.test.succeed();
} else {
« no previous file with comments | « chrome/common/extensions/api/screenlock_private.idl ('k') | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698