Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / permissions / file_access_yes / background.js
blobbf9dc35c4e9f1a94a1d8825bdc625fea659019b3
1 // Copyright (c) 2013 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.
5 var callbackPass = chrome.test.callbackPass;
7 function test() {
8 chrome.permissions.request({"origins": ["file:///*"]},
9 callbackPass(function(granted) {
10 chrome.test.assertTrue(granted);
11 chrome.permissions.getAll(callbackPass(function(permissions) {
12 chrome.test.assertEq(["file:///*"], permissions.origins);
13 chrome.test.succeed();
14 }));
15 }));
18 chrome.test.runTests([test]);