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 <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 "extensions/common/extension.h" | 11 #include "extensions/common/extension.h" |
12 #include "extensions/common/manifest.h" | 12 #include "extensions/common/manifest.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.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* kPublicSessionWhitelist[] = { | 21 const char* 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 | 26 |
27 // Libraries: | 27 // Libraries: |
28 "aclofikceldphonlfmghmimkodjdmhck", // Ancoris login component | 28 "aclofikceldphonlfmghmimkodjdmhck", // Ancoris login component |
29 "eilbnahdgoddoedakcmfkcgfoegeloil", // Ancoris proxy component | 29 "eilbnahdgoddoedakcmfkcgfoegeloil", // Ancoris proxy component |
| 30 "ceehlgckkmkaoggdnjhibffkphfnphmg", // Libdata login |
30 | 31 |
31 // Retail mode: | 32 // Retail mode: |
32 "ehcabepphndocfmgbdkbjibfodelmpbb", // Angry Birds demo | 33 "ehcabepphndocfmgbdkbjibfodelmpbb", // Angry Birds demo |
33 "kgimkbnclbekdkabkpjhpakhhalfanda", // Bejeweled demo | 34 "kgimkbnclbekdkabkpjhpakhhalfanda", // Bejeweled demo |
34 "joodangkbfjnajiiifokapkpmhfnpleo", // Calculator | 35 "joodangkbfjnajiiifokapkpmhfnpleo", // Calculator |
35 "fpgfohogebplgnamlafljlcidjedbdeb", // Calendar demo | 36 "fpgfohogebplgnamlafljlcidjedbdeb", // Calendar demo |
36 "hfhhnacclhffhdffklopdkcgdhifgngh", // Camera | 37 "hfhhnacclhffhdffklopdkcgdhifgngh", // Camera |
37 "cdjikkcakjcdjemakobkmijmikhkegcj", // Chrome Remote Desktop demo | 38 "cdjikkcakjcdjemakobkmijmikhkegcj", // Chrome Remote Desktop demo |
38 "jkoildpomkimndcphjpffmephmcmkfhn", // Chromebook Demo App | 39 "jkoildpomkimndcphjpffmephmcmkfhn", // Chromebook Demo App |
39 "ielkookhdphmgbipcfmafkaiagademfp", // Custom bookmarks | 40 "ielkookhdphmgbipcfmafkaiagademfp", // Custom bookmarks |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 if (error) { | 127 if (error) { |
127 *error = l10n_util::GetStringFUTF16( | 128 *error = l10n_util::GetStringFUTF16( |
128 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT, | 129 IDS_EXTENSION_CANT_INSTALL_IN_DEVICE_LOCAL_ACCOUNT, |
129 base::UTF8ToUTF16(extension->name()), | 130 base::UTF8ToUTF16(extension->name()), |
130 base::UTF8ToUTF16(extension->id())); | 131 base::UTF8ToUTF16(extension->id())); |
131 } | 132 } |
132 return false; | 133 return false; |
133 } | 134 } |
134 | 135 |
135 } // namespace chromeos | 136 } // namespace chromeos |
OLD | NEW |