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

Unified Diff: chrome/browser/chromeos/policy/policy_cert_service_factory.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/chromeos/policy/policy_cert_service_factory.cc
diff --git a/chrome/browser/chromeos/policy/policy_cert_service_factory.cc b/chrome/browser/chromeos/policy/policy_cert_service_factory.cc
index 5470fdac1b746bcb01ee127d1ec0e59682c2af2f..4e1f3ad4be546e1e672ed2c9cf285cb5edf529dc 100644
--- a/chrome/browser/chromeos/policy/policy_cert_service_factory.cc
+++ b/chrome/browser/chromeos/policy/policy_cert_service_factory.cc
@@ -30,13 +30,13 @@ PolicyCertService* PolicyCertServiceFactory::GetForProfile(Profile* profile) {
}
// static
-scoped_ptr<PolicyCertVerifier> PolicyCertServiceFactory::CreateForProfile(
+std::unique_ptr<PolicyCertVerifier> PolicyCertServiceFactory::CreateForProfile(
Profile* profile) {
DCHECK(!GetInstance()->GetServiceForBrowserContext(profile, false));
PolicyCertService* service = static_cast<PolicyCertService*>(
GetInstance()->GetServiceForBrowserContext(profile, true));
if (!service)
- return scoped_ptr<PolicyCertVerifier>();
+ return std::unique_ptr<PolicyCertVerifier>();
return service->CreatePolicyCertVerifier();
}
« no previous file with comments | « chrome/browser/chromeos/policy/policy_cert_service_factory.h ('k') | chrome/browser/chromeos/policy/policy_cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698