OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/content_settings/content_settings_internal_extension_pr
ovider.h" | 5 #include "chrome/browser/content_settings/content_settings_internal_extension_pr
ovider.h" |
6 | 6 |
7 #include "chrome/browser/pdf/pdf_extension_util.h" | 7 #include "chrome/browser/pdf/pdf_extension_util.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/common/chrome_content_client.h" | 9 #include "chrome/common/chrome_content_client.h" |
10 #include "chrome/common/extensions/api/plugins/plugins_handler.h" | 10 #include "chrome/common/extensions/api/plugins/plugins_handler.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 "C6EA52B92F80878515F94137020F01519357E5B5", | 131 "C6EA52B92F80878515F94137020F01519357E5B5", |
132 "E466389F058ABD73FF6FDD06F768A351FCBF8532", | 132 "E466389F058ABD73FF6FDD06F768A351FCBF8532", |
133 "40063F1CF7B68BA847A26FA6620DDF156171D23C", | 133 "40063F1CF7B68BA847A26FA6620DDF156171D23C", |
134 "A6FD8E15353CF1F5C3D0A7B20E1D10AEA4DD3E6A", | 134 "A6FD8E15353CF1F5C3D0A7B20E1D10AEA4DD3E6A", |
135 "57AC4D9E6BD8A2D0A70056B5FAC2378CAA588912", | 135 "57AC4D9E6BD8A2D0A70056B5FAC2378CAA588912", |
136 "02037314DA4D913640DCF0E296A7D01F4FD793EC", | 136 "02037314DA4D913640DCF0E296A7D01F4FD793EC", |
137 "B6EC0809BC63E10B431C5E4AA3645232CA86B2A5", | 137 "B6EC0809BC63E10B431C5E4AA3645232CA86B2A5", |
138 "48CA541313139786F056DBCB504A1025CFF5D2E3", | 138 "48CA541313139786F056DBCB504A1025CFF5D2E3", |
139 "05106136AE7F08A3C181D4648E5438350B1D2B4F" | 139 "05106136AE7F08A3C181D4648E5438350B1D2B4F" |
140 }; | 140 }; |
141 if (extensions::SimpleFeature::IsIdInList( | 141 if (extensions::SimpleFeature::IsIdInArray( |
142 host->extension()->id(), | 142 host->extension()->id(), |
143 std::set<std::string>( | 143 kAppWhitelist, |
144 kAppWhitelist, kAppWhitelist + arraysize(kAppWhitelist)))) { | 144 arraysize(kAppWhitelist))) { |
145 SetContentSettingForExtensionAndResource( | 145 SetContentSettingForExtensionAndResource( |
146 host->extension(), | 146 host->extension(), |
147 ChromeContentClient::kRemotingViewerPluginPath, | 147 ChromeContentClient::kRemotingViewerPluginPath, |
148 CONTENT_SETTING_ALLOW); | 148 CONTENT_SETTING_ALLOW); |
149 } | 149 } |
150 } | 150 } |
151 | 151 |
152 break; | 152 break; |
153 } | 153 } |
154 case extensions::NOTIFICATION_EXTENSION_LOADED_DEPRECATED: { | 154 case extensions::NOTIFICATION_EXTENSION_LOADED_DEPRECATED: { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 new base::FundamentalValue(setting)); | 230 new base::FundamentalValue(setting)); |
231 } | 231 } |
232 } | 232 } |
233 NotifyObservers(primary_pattern, | 233 NotifyObservers(primary_pattern, |
234 secondary_pattern, | 234 secondary_pattern, |
235 CONTENT_SETTINGS_TYPE_PLUGINS, | 235 CONTENT_SETTINGS_TYPE_PLUGINS, |
236 resource); | 236 resource); |
237 } | 237 } |
238 | 238 |
239 } // namespace content_settings | 239 } // namespace content_settings |
OLD | NEW |