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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc

Issue 1870003002: Convert //chrome/browser/safe_browsing from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments 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/safe_browsing/incident_reporting/extension_data_collection.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc b/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc
index 22a112c8f39906a4fd51a5dfcb2d86f157919182..2fc10dd4816572e20fa68de2589e3528a33d1cf9 100644
--- a/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc
@@ -71,7 +71,7 @@ void PopulateExtensionInfo(
const base::DictionaryValue* signature =
extension_prefs.GetInstallSignature();
if (signature) {
- scoped_ptr<extensions::InstallSignature> signature_from_prefs =
+ std::unique_ptr<extensions::InstallSignature> signature_from_prefs =
extensions::InstallSignature::FromValue(*signature);
if (signature_from_prefs) {
if (ContainsKey(signature_from_prefs->ids, extension_id)) {
@@ -108,7 +108,7 @@ void CollectExtensionData(ClientIncidentReport_ExtensionData* data) {
if (!IncidentReportingService::IsEnabledForProfile(profile))
continue;
- scoped_ptr<const extensions::ExtensionSet> extensions(
+ std::unique_ptr<const extensions::ExtensionSet> extensions(
extensions::ExtensionRegistryFactory::GetForBrowserContext(profile)
->GenerateInstalledExtensionsSet());
extensions::ExtensionPrefs* extension_prefs =

Powered by Google App Engine
This is Rietveld 408576698