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

Side by Side Diff: chrome/browser/ssl/ssl_error_info.cc

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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/ssl/ssl_error_info.h" 5 #include "chrome/browser/ssl/ssl_error_info.h"
6 6
7 #include "base/i18n/time_formatting.h" 7 #include "base/i18n/time_formatting.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/common/time_format.h" 9 #include "chrome/common/time_format.h"
10 #include "content/public/browser/cert_store.h" 10 #include "content/public/browser/cert_store.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 int count = 0; 277 int count = 0;
278 for (size_t i = 0; i < arraysize(kErrorFlags); ++i) { 278 for (size_t i = 0; i < arraysize(kErrorFlags); ++i) {
279 if (cert_status & kErrorFlags[i]) { 279 if (cert_status & kErrorFlags[i]) {
280 count++; 280 count++;
281 if (!cert.get()) { 281 if (!cert.get()) {
282 bool r = content::CertStore::GetInstance()->RetrieveCert( 282 bool r = content::CertStore::GetInstance()->RetrieveCert(
283 cert_id, &cert); 283 cert_id, &cert);
284 DCHECK(r); 284 DCHECK(r);
285 } 285 }
286 if (errors) 286 if (errors)
287 errors->push_back(SSLErrorInfo::CreateError(kErrorTypes[i], cert, url)); 287 errors->push_back(
288 SSLErrorInfo::CreateError(kErrorTypes[i], cert.get(), url));
288 } 289 }
289 } 290 }
290 return count; 291 return count;
291 } 292 }
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_client_certificate_selector_test.cc ('k') | chrome/browser/ssl/ssl_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698