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

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

Issue 1306053013: White-listing Chrome Remote Desktop to use the identity API in Public Session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compiler error on Windows Created 5 years, 2 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 | chrome/browser/extensions/api/identity/identity_api.h » ('j') | 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 <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/grit/generated_resources.h" 11 #include "chrome/grit/generated_resources.h"
12 #include "extensions/common/extension.h" 12 #include "extensions/common/extension.h"
13 #include "extensions/common/manifest.h" 13 #include "extensions/common/manifest.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 namespace { 18 namespace {
19 19
20 // Apps/extensions explicitly whitelisted for use in public sessions. 20 // Apps/extensions explicitly whitelisted for use in public sessions.
21 const char* const kPublicSessionWhitelist[] = { 21 const char* const kPublicSessionWhitelist[] = {
22 // Public sessions in general: 22 // Public sessions in general:
23 "cbkkbcmdlboombapidmoeolnmdacpkch", // Chrome RDP 23 "cbkkbcmdlboombapidmoeolnmdacpkch", // Chrome RDP
24 "djflhoibgkdhkhhcedjiklpkjnoahfmg", // User Agent Switcher 24 "djflhoibgkdhkhhcedjiklpkjnoahfmg", // User Agent Switcher
25 "iabmpiboiopbgfabjmgeedhcmjenhbla", // VNC Viewer 25 "iabmpiboiopbgfabjmgeedhcmjenhbla", // VNC Viewer
26 "haiffjcadagjlijoggckpgfnoeiflnem", // Citrix Receiver 26 "haiffjcadagjlijoggckpgfnoeiflnem", // Citrix Receiver
27 "mfaihdlpglflfgpfjcifdjdjcckigekc", // ARC Runtime 27 "mfaihdlpglflfgpfjcifdjdjcckigekc", // ARC Runtime
28 "ngjnkanfphagcaokhjecbgkboelgfcnf", // Print button 28 "ngjnkanfphagcaokhjecbgkboelgfcnf", // Print button
29 "gbchcmhmhahfdphkhkmpfmihenigjmpp", // Chrome Remote Desktop
29 30
30 // Libraries: 31 // Libraries:
31 "aclofikceldphonlfmghmimkodjdmhck", // Ancoris login component 32 "aclofikceldphonlfmghmimkodjdmhck", // Ancoris login component
32 "eilbnahdgoddoedakcmfkcgfoegeloil", // Ancoris proxy component 33 "eilbnahdgoddoedakcmfkcgfoegeloil", // Ancoris proxy component
33 "ceehlgckkmkaoggdnjhibffkphfnphmg", // Libdata login 34 "ceehlgckkmkaoggdnjhibffkphfnphmg", // Libdata login
34 "fnhgfoccpcjdnjcobejogdnlnidceemb", // OverDrive 35 "fnhgfoccpcjdnjcobejogdnlnidceemb", // OverDrive
35 36
36 // Retail mode: 37 // Retail mode:
37 "bjfeaefhaooblkndnoabbkkkenknkemb", // 500 px demo 38 "bjfeaefhaooblkndnoabbkkkenknkemb", // 500 px demo
38 "ehcabepphndocfmgbdkbjibfodelmpbb", // Angry Birds demo 39 "ehcabepphndocfmgbdkbjibfodelmpbb", // Angry Birds demo
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 "pdckcbpciaaicoomipamcabpdadhofgh", // Weatherbug demo 94 "pdckcbpciaaicoomipamcabpdadhofgh", // Weatherbug demo
94 "biliocemfcghhioihldfdmkkhnofcgmb", // Webcam Toy demo 95 "biliocemfcghhioihldfdmkkhnofcgmb", // Webcam Toy demo
95 "bhfoghflalnnjfcfkaelngenjgjjhapk", // Wevideo demo 96 "bhfoghflalnnjfcfkaelngenjgjjhapk", // Wevideo demo
96 "pjckdjlmdcofkkkocnmhcbehkiapalho", // Wunderlist demo 97 "pjckdjlmdcofkkkocnmhcbehkiapalho", // Wunderlist demo
97 "pbdihpaifchmclcmkfdgffnnpfbobefh", // YouTube demo 98 "pbdihpaifchmclcmkfdgffnnpfbobefh", // YouTube demo
98 99
99 // Testing extensions: 100 // Testing extensions:
100 "ongnjlefhnoajpbodoldndkbkdgfomlp", // Show Managed Storage 101 "ongnjlefhnoajpbodoldndkbkdgfomlp", // Show Managed Storage
101 "ilnpadgckeacioehlommkaafedibdeob", // Enterprise DeviceAttributes 102 "ilnpadgckeacioehlommkaafedibdeob", // Enterprise DeviceAttributes
102 "oflckobdemeldmjddmlbaiaookhhcngo", // Citrix Receiver QA version 103 "oflckobdemeldmjddmlbaiaookhhcngo", // Citrix Receiver QA version
104 "ljacajndfccfgnfohlgkdphmbnpkjflk", // Chrome Remote Desktop (Dev Build)
103 }; 105 };
104 106
105 } // namespace 107 } // namespace
106 108
107 DeviceLocalAccountManagementPolicyProvider:: 109 DeviceLocalAccountManagementPolicyProvider::
108 DeviceLocalAccountManagementPolicyProvider( 110 DeviceLocalAccountManagementPolicyProvider(
109 policy::DeviceLocalAccount::Type account_type) 111 policy::DeviceLocalAccount::Type account_type)
110 : account_type_(account_type) { 112 : account_type_(account_type) {
111 } 113 }
112 114
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 if (error) { 157 if (error) {
156 *error = l10n_util::GetStringFUTF16( 158 *error = l10n_util::GetStringFUTF16(
157 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT, 159 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT,
158 base::UTF8ToUTF16(extension->name()), 160 base::UTF8ToUTF16(extension->name()),
159 base::UTF8ToUTF16(extension->id())); 161 base::UTF8ToUTF16(extension->id()));
160 } 162 }
161 return false; 163 return false;
162 } 164 }
163 165
164 } // namespace chromeos 166 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/identity/identity_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698