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

Unified Diff: chrome/browser/page_info_model.cc

Issue 9537015: Adds "Certificate Information" label for page_info_model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/page_info_model.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/page_info_model.cc
diff --git a/chrome/browser/page_info_model.cc b/chrome/browser/page_info_model.cc
index 78ba9d28a178e7edc23b0ada89911e07a1e221dc..a66597577c1face49dad2d0d8573eafaeba3a002 100644
--- a/chrome/browser/page_info_model.cc
+++ b/chrome/browser/page_info_model.cc
@@ -287,6 +287,11 @@ PageInfoModel::PageInfoModel(Profile* profile,
base::Bind(&PageInfoModel::OnGotVisitCountToHost,
base::Unretained(this)));
}
+
+ if (ssl.cert_id) {
+ certificate_label_ = l10n_util::GetStringUTF16(
+ IDS_PAGEINFO_CERT_INFO_BUTTON);
+ }
}
PageInfoModel::~PageInfoModel() {}
@@ -344,6 +349,10 @@ void PageInfoModel::OnGotVisitCountToHost(HistoryService::Handle handle,
observer_->OnPageInfoModelChanged();
}
+string16 PageInfoModel::GetCertificateLabel() const {
+ return certificate_label_;
+}
+
PageInfoModel::PageInfoModel() : observer_(NULL) {
Init();
}
« no previous file with comments | « chrome/browser/page_info_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698