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

Side by Side Diff: chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc

Issue 2860653004: [Merge to M59] Whitelisted clipboardRead Permission (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | 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
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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 426
427 // Open a new tab with a given URL. 427 // Open a new tab with a given URL.
428 "browser", 428 "browser",
429 429
430 // This allows to read the current browsing data removal dialog settings, 430 // This allows to read the current browsing data removal dialog settings,
431 // but I don't see why this would be problematic. 431 // but I don't see why this would be problematic.
432 "browsingData", 432 "browsingData",
433 433
434 "certificateProvider", 434 "certificateProvider",
435 435
436 // This is risky, but blocking extensions just because they declare 436 // clipboardRead is restricted to return an empty string (except for
437 // clipboardRead is unfortunate. Options: (1) Make clipboardRead return 437 // whitelisted extensions - ie. Chrome RDP client).
438 // empty string (2) confirmation dialog. 438 "clipboardRead",
439 // "clipboardRead",
440 439
441 // Writing to clipboard is safe. 440 // Writing to clipboard is safe.
442 "clipboardWrite", 441 "clipboardWrite",
443 442
444 "contentSettings", 443 "contentSettings",
445 444
446 // Privacy sensitive URL access. 445 // Privacy sensitive URL access.
447 // "contextMenus", 446 // "contextMenus",
448 447
449 // This would provie access to auth cookies, so needs to be blocked. 448 // This would provie access to auth cookies, so needs to be blocked.
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 if (error) { 945 if (error) {
947 *error = l10n_util::GetStringFUTF16( 946 *error = l10n_util::GetStringFUTF16(
948 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT, 947 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT,
949 base::UTF8ToUTF16(extension->name()), 948 base::UTF8ToUTF16(extension->name()),
950 base::UTF8ToUTF16(extension->id())); 949 base::UTF8ToUTF16(extension->id()));
951 } 950 }
952 return false; 951 return false;
953 } 952 }
954 953
955 } // namespace chromeos 954 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698