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

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

Issue 2327433002: Stop using CertStore which is not compatible with PlzNavigate. (Closed)
Patch Set: remove cert_store on ios Created 4 years, 3 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_ui.h" 5 #include "chrome/browser/ui/website_settings/website_settings_ui.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "chrome/browser/plugins/plugins_field_trial.h" 8 #include "chrome/browser/plugins/plugins_field_trial.h"
9 #include "chrome/grit/chromium_strings.h" 9 #include "chrome/grit/chromium_strings.h"
10 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 WebsiteSettingsUI::ChosenObjectInfo::ChosenObjectInfo( 132 WebsiteSettingsUI::ChosenObjectInfo::ChosenObjectInfo(
133 const WebsiteSettings::ChooserUIInfo& ui_info, 133 const WebsiteSettings::ChooserUIInfo& ui_info,
134 std::unique_ptr<base::DictionaryValue> object) 134 std::unique_ptr<base::DictionaryValue> object)
135 : ui_info(ui_info), object(std::move(object)) {} 135 : ui_info(ui_info), object(std::move(object)) {}
136 136
137 WebsiteSettingsUI::ChosenObjectInfo::~ChosenObjectInfo() {} 137 WebsiteSettingsUI::ChosenObjectInfo::~ChosenObjectInfo() {}
138 138
139 WebsiteSettingsUI::IdentityInfo::IdentityInfo() 139 WebsiteSettingsUI::IdentityInfo::IdentityInfo()
140 : identity_status(WebsiteSettings::SITE_IDENTITY_STATUS_UNKNOWN), 140 : identity_status(WebsiteSettings::SITE_IDENTITY_STATUS_UNKNOWN),
141 cert_id(0),
142 connection_status(WebsiteSettings::SITE_CONNECTION_STATUS_UNKNOWN), 141 connection_status(WebsiteSettings::SITE_CONNECTION_STATUS_UNKNOWN),
143 show_ssl_decision_revoke_button(false) { 142 show_ssl_decision_revoke_button(false) {
144 } 143 }
145 144
146 WebsiteSettingsUI::IdentityInfo::~IdentityInfo() {} 145 WebsiteSettingsUI::IdentityInfo::~IdentityInfo() {}
147 146
148 base::string16 WebsiteSettingsUI::IdentityInfo::GetSecuritySummary() const { 147 base::string16 WebsiteSettingsUI::IdentityInfo::GetSecuritySummary() const {
149 switch (identity_status) { 148 switch (identity_status) {
150 case WebsiteSettings::SITE_IDENTITY_STATUS_CERT: 149 case WebsiteSettings::SITE_IDENTITY_STATUS_CERT:
151 case WebsiteSettings::SITE_IDENTITY_STATUS_EV_CERT: 150 case WebsiteSettings::SITE_IDENTITY_STATUS_EV_CERT:
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 363 }
365 return resource_id; 364 return resource_id;
366 } 365 }
367 366
368 // static 367 // static
369 const gfx::Image& WebsiteSettingsUI::GetConnectionIcon( 368 const gfx::Image& WebsiteSettingsUI::GetConnectionIcon(
370 WebsiteSettings::SiteConnectionStatus status) { 369 WebsiteSettings::SiteConnectionStatus status) {
371 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 370 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
372 return rb.GetNativeImageNamed(GetConnectionIconID(status)); 371 return rb.GetNativeImageNamed(GetConnectionIconID(status));
373 } 372 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698