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

Side by Side Diff: chrome/browser/ui/website_settings/website_settings.cc

Issue 2185213002: Display USB devices in the site settings popup on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 (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
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,
benwells 2016/07/28 07:51:13 Is there a plan to remove this USB specific code f
Reilly Grant (use Gerrit) 2016/07/28 17:55:43 Can you explain why it is wrong to have this here?
benwells 2016/07/29 05:01:39 OK, my bad, I got a bit mixed up.
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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 info.connection_status = site_connection_status_; 762 info.connection_status = site_connection_status_;
763 info.connection_status_description = 763 info.connection_status_description =
764 UTF16ToUTF8(site_connection_details_); 764 UTF16ToUTF8(site_connection_details_);
765 info.identity_status = site_identity_status_; 765 info.identity_status = site_identity_status_;
766 info.identity_status_description = 766 info.identity_status_description =
767 UTF16ToUTF8(site_identity_details_); 767 UTF16ToUTF8(site_identity_details_);
768 info.cert_id = cert_id_; 768 info.cert_id = cert_id_;
769 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; 769 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_;
770 ui_->SetIdentityInfo(info); 770 ui_->SetIdentityInfo(info);
771 } 771 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698