| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/extensions/device_local_account_management_pol
icy_provider.h" | 5 #include "chrome/browser/chromeos/extensions/device_local_account_management_pol
icy_provider.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cstddef> | 9 #include <cstddef> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 // doesn't trigger a permission warning on install though, so blocking is | 427 // doesn't trigger a permission warning on install though, so blocking is |
| 428 // somewhat at odds with the spirit of the API - however I presume the API | 428 // somewhat at odds with the spirit of the API - however I presume the API |
| 429 // design assumes user-installed extensions, which we don't have here. | 429 // design assumes user-installed extensions, which we don't have here. |
| 430 // "activeTab", | 430 // "activeTab", |
| 431 | 431 |
| 432 // Schedule code to run at future times. | 432 // Schedule code to run at future times. |
| 433 "alarms", | 433 "alarms", |
| 434 | 434 |
| 435 // PS UX can always be seen, this one doesn't go over it so it's fine. | 435 // PS UX can always be seen, this one doesn't go over it so it's fine. |
| 436 "app.window.alwaysOnTop", | 436 "app.window.alwaysOnTop", |
| 437 "alwaysOnTopWindows", |
| 437 | 438 |
| 438 // Fullscreen is crippled in Public Sessions, maximizes instead, so both | 439 // Fullscreen is crippled in Public Sessions, maximizes instead, so both |
| 439 // fullscreen and overrideEsc are safe for use in PS. (The recommended | 440 // fullscreen and overrideEsc are safe for use in PS. (The recommended |
| 440 // permission names are "app.window.*" but their unprefixed counterparts are | 441 // permission names are "app.window.*" but their unprefixed counterparts are |
| 441 // still supported.) | 442 // still supported.) |
| 442 "app.window.fullscreen", | 443 "app.window.fullscreen", |
| 443 "app.window.fullscreen.overrideEsc", | 444 "app.window.fullscreen.overrideEsc", |
| 444 "fullscreen", | 445 "fullscreen", |
| 445 "overrideEscFullscreen", | 446 "overrideEscFullscreen", |
| 446 | 447 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 // "topSites", | 682 // "topSites", |
| 682 | 683 |
| 683 // Allows to generate TTS, but no content access. Just UX. | 684 // Allows to generate TTS, but no content access. Just UX. |
| 684 "tts", | 685 "tts", |
| 685 | 686 |
| 686 // Might need this, but has content access. Manual whitelisting? | 687 // Might need this, but has content access. Manual whitelisting? |
| 687 // "ttsEngine", | 688 // "ttsEngine", |
| 688 | 689 |
| 689 // Excessive resource usage is not a risk. | 690 // Excessive resource usage is not a risk. |
| 690 "unlimitedStorage", | 691 "unlimitedStorage", |
| 692 "unlimited_storage", |
| 691 | 693 |
| 692 // Plugging the USB device is sufficient as consent gesture. | 694 // Plugging the USB device is sufficient as consent gesture. |
| 693 "usb", | 695 "usb", |
| 694 | 696 |
| 695 // Belongs to the USB API. | 697 // Belongs to the USB API. |
| 696 "usbDevices", | 698 "usbDevices", |
| 697 | 699 |
| 698 // User is prompted (allow/deny) when an extension requests videoCapture. | 700 // User is prompted (allow/deny) when an extension requests videoCapture. |
| 699 // The request is done via the getUserMedia API. | 701 // The request is done via the getUserMedia API. |
| 700 "videoCapture", | 702 "videoCapture", |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 if (error) { | 1000 if (error) { |
| 999 *error = l10n_util::GetStringFUTF16( | 1001 *error = l10n_util::GetStringFUTF16( |
| 1000 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT, | 1002 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT, |
| 1001 base::UTF8ToUTF16(extension->name()), | 1003 base::UTF8ToUTF16(extension->name()), |
| 1002 base::UTF8ToUTF16(extension->id())); | 1004 base::UTF8ToUTF16(extension->id())); |
| 1003 } | 1005 } |
| 1004 return false; | 1006 return false; |
| 1005 } | 1007 } |
| 1006 | 1008 |
| 1007 } // namespace chromeos | 1009 } // namespace chromeos |
| OLD | NEW |