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

Side by Side Diff: chrome/test/data/extensions/api_test/terminal/no_permission/test.js

Issue 9317013: Add a centralized mechanism for whitelisting access to extension permissions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years, 10 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 unified diff | Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var kPermissionError = "Extension does not have the permission to use this API";
6
7 chrome.test.runTests([
8 function tryOpenExtension() {
9 chrome.terminalPrivate.openTerminalProcess("crosh",
10 chrome.test.callbackFail(kPermissionError));
11 },
12 function trySendInput() {
13 chrome.terminalPrivate.sendInput(1222, "some input",
14 chrome.test.callbackFail(kPermissionError));
15 },
16 function tryClose() {
17 chrome.terminalPrivate.closeTerminalProcess(1222,
18 chrome.test.callbackFail(kPermissionError));
19 }
20 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698