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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 118145: Remove the obsolete TabContents::GetSecurityStyle and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 17673)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -523,36 +523,6 @@
return true;
}
-#if defined(OS_WIN)
-SecurityStyle TabContents::GetSecurityStyle() const {
- // We may not have a navigation entry yet.
- NavigationEntry* entry = controller_.GetActiveEntry();
- return entry ? entry->ssl().security_style() : SECURITY_STYLE_UNKNOWN;
-}
-
-bool TabContents::GetSSLEVText(std::wstring* ev_text,
- std::wstring* ev_tooltip_text) const {
- DCHECK(ev_text && ev_tooltip_text);
- ev_text->clear();
- ev_tooltip_text->clear();
-
- NavigationEntry* entry = controller_.GetActiveEntry();
- if (!entry ||
- net::IsCertStatusError(entry->ssl().cert_status()) ||
- ((entry->ssl().cert_status() & net::CERT_STATUS_IS_EV) == 0))
- return false;
-
- scoped_refptr<net::X509Certificate> cert;
- CertStore::GetSharedInstance()->RetrieveCert(entry->ssl().cert_id(), &cert);
- if (!cert.get()) {
- NOTREACHED();
- return false;
- }
-
- return SSLManager::GetEVCertNames(*cert, ev_text, ev_tooltip_text);
-}
-#endif
-
std::wstring TabContents::GetStatusText() const {
if (!is_loading() || load_state_ == net::LOAD_STATE_IDLE)
return std::wstring();
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698