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

Unified Diff: chrome/browser/ui/views/signed_certificate_timestamps_views.cc

Issue 505913002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/signed_certificate_timestamps_views.cc
diff --git a/chrome/browser/ui/views/signed_certificate_timestamps_views.cc b/chrome/browser/ui/views/signed_certificate_timestamps_views.cc
index 77264ed2eb5c66628984e3f1865711278fe08a2c..ef047d66e8138f2ad57cbb826f26e7e3cc94f434 100644
--- a/chrome/browser/ui/views/signed_certificate_timestamps_views.cc
+++ b/chrome/browser/ui/views/signed_certificate_timestamps_views.cc
@@ -79,7 +79,7 @@ int SCTListModel::GetItemCount() const { return sct_list_.size(); }
base::string16 SCTListModel::GetItemAt(int index) {
DCHECK_LT(static_cast<size_t>(index), sct_list_.size());
std::string origin = l10n_util::GetStringUTF8(
- chrome::ct::SCTOriginToResourceID(*(sct_list_[index].sct)));
+ chrome::ct::SCTOriginToResourceID(*(sct_list_[index].sct.get())));
std::string status = l10n_util::GetStringUTF8(
chrome::ct::StatusToResourceID(sct_list_[index].status));
@@ -152,7 +152,7 @@ void SignedCertificateTimestampsViews::Init() {
sct_info_view_ = new SignedCertificateTimestampInfoView();
layout->AddView(sct_info_view_);
- sct_info_view_->SetSignedCertificateTimestamp(*(sct_list_[0].sct),
+ sct_info_view_->SetSignedCertificateTimestamp(*(sct_list_[0].sct.get()),
sct_list_[0].status);
}
@@ -160,8 +160,8 @@ void SignedCertificateTimestampsViews::ShowSCTInfo(int sct_index) {
if ((sct_index < 0) || (static_cast<size_t>(sct_index) > sct_list_.size()))
return;
- sct_info_view_->SetSignedCertificateTimestamp(*(sct_list_[sct_index].sct),
- sct_list_[sct_index].status);
+ sct_info_view_->SetSignedCertificateTimestamp(
+ *(sct_list_[sct_index].sct.get()), sct_list_[sct_index].status);
}
void SignedCertificateTimestampsViews::Observe(

Powered by Google App Engine
This is Rietveld 408576698