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

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: Return error on failure 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
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
Andrew T Wilson (Slow) 2015/09/29 13:20:30 Is "Chrome RDP" now obsolete then?
kelvinp 2015/09/29 18:08:49 No, it is an orthogonal effort. Chrome RDP is a RD
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 "gnckahkflocidcgjbeheneogeflpjien", // Vine demo 93 "gnckahkflocidcgjbeheneogeflpjien", // Vine demo
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
103 "ljacajndfccfgnfohlgkdphmbnpkjflk", // Chrome Remote Desktop (Dev Build)
102 }; 104 };
103 105
104 } // namespace 106 } // namespace
105 107
106 DeviceLocalAccountManagementPolicyProvider:: 108 DeviceLocalAccountManagementPolicyProvider::
107 DeviceLocalAccountManagementPolicyProvider( 109 DeviceLocalAccountManagementPolicyProvider(
108 policy::DeviceLocalAccount::Type account_type) 110 policy::DeviceLocalAccount::Type account_type)
109 : account_type_(account_type) { 111 : account_type_(account_type) {
110 } 112 }
111 113
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 if (error) { 156 if (error) {
155 *error = l10n_util::GetStringFUTF16( 157 *error = l10n_util::GetStringFUTF16(
156 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT, 158 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT,
157 base::UTF8ToUTF16(extension->name()), 159 base::UTF8ToUTF16(extension->name()),
158 base::UTF8ToUTF16(extension->id())); 160 base::UTF8ToUTF16(extension->id()));
159 } 161 }
160 return false; 162 return false;
161 } 163 }
162 164
163 } // namespace chromeos 165 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698