| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/website_settings/website_settings.h" | 5 #include "chrome/browser/ui/website_settings/website_settings.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 } | 194 } |
| 195 | 195 |
| 196 ChooserContextBase* GetUsbChooserContext(Profile* profile) { | 196 ChooserContextBase* GetUsbChooserContext(Profile* profile) { |
| 197 return UsbChooserContextFactory::GetForProfile(profile); | 197 return UsbChooserContextFactory::GetForProfile(profile); |
| 198 } | 198 } |
| 199 | 199 |
| 200 // The list of chooser types that need to display entries in the Website | 200 // The list of chooser types that need to display entries in the Website |
| 201 // Settings UI. THE ORDER OF THESE ITEMS IS IMPORTANT. To propose changing it, | 201 // Settings UI. THE ORDER OF THESE ITEMS IS IMPORTANT. To propose changing it, |
| 202 // email security-dev@chromium.org. | 202 // email security-dev@chromium.org. |
| 203 WebsiteSettings::ChooserUIInfo kChooserUIInfo[] = { | 203 WebsiteSettings::ChooserUIInfo kChooserUIInfo[] = { |
| 204 {&GetUsbChooserContext, IDR_BLOCKED_USB, IDR_ALLOWED_USB, | 204 {CONTENT_SETTINGS_TYPE_USB_CHOOSER_DATA, &GetUsbChooserContext, |
| 205 IDS_WEBSITE_SETTINGS_USB_DEVICE_LABEL, | 205 IDR_BLOCKED_USB, IDR_ALLOWED_USB, IDS_WEBSITE_SETTINGS_USB_DEVICE_LABEL, |
| 206 IDS_WEBSITE_SETTINGS_DELETE_USB_DEVICE, "name"}, | 206 IDS_WEBSITE_SETTINGS_DELETE_USB_DEVICE, "name"}, |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 } // namespace | 209 } // namespace |
| 210 | 210 |
| 211 WebsiteSettings::WebsiteSettings( | 211 WebsiteSettings::WebsiteSettings( |
| 212 WebsiteSettingsUI* ui, | 212 WebsiteSettingsUI* ui, |
| 213 Profile* profile, | 213 Profile* profile, |
| 214 TabSpecificContentSettings* tab_specific_content_settings, | 214 TabSpecificContentSettings* tab_specific_content_settings, |
| 215 content::WebContents* web_contents, | 215 content::WebContents* web_contents, |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 info.connection_status = site_connection_status_; | 757 info.connection_status = site_connection_status_; |
| 758 info.connection_status_description = | 758 info.connection_status_description = |
| 759 UTF16ToUTF8(site_connection_details_); | 759 UTF16ToUTF8(site_connection_details_); |
| 760 info.identity_status = site_identity_status_; | 760 info.identity_status = site_identity_status_; |
| 761 info.identity_status_description = | 761 info.identity_status_description = |
| 762 UTF16ToUTF8(site_identity_details_); | 762 UTF16ToUTF8(site_identity_details_); |
| 763 info.cert_id = cert_id_; | 763 info.cert_id = cert_id_; |
| 764 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; | 764 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; |
| 765 ui_->SetIdentityInfo(info); | 765 ui_->SetIdentityInfo(info); |
| 766 } | 766 } |
| OLD | NEW |