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

Unified Diff: chrome/browser/extensions/api/settings_private/prefs_util.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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/extensions/api/settings_private/prefs_util.cc
diff --git a/chrome/browser/extensions/api/settings_private/prefs_util.cc b/chrome/browser/extensions/api/settings_private/prefs_util.cc
index 0f69e53bfb2d679aa560ad6b464ccd1083254507..bd007efe420df75b2ac0765ecae565728ecbefc5 100644
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -292,9 +292,9 @@ settings_private::PrefType PrefsUtil::GetType(const std::string& name,
}
}
-scoped_ptr<settings_private::PrefObject> PrefsUtil::GetCrosSettingsPref(
+std::unique_ptr<settings_private::PrefObject> PrefsUtil::GetCrosSettingsPref(
const std::string& name) {
- scoped_ptr<settings_private::PrefObject> pref_object(
+ std::unique_ptr<settings_private::PrefObject> pref_object(
new settings_private::PrefObject());
#if defined(OS_CHROMEOS)
@@ -308,10 +308,10 @@ scoped_ptr<settings_private::PrefObject> PrefsUtil::GetCrosSettingsPref(
return pref_object;
}
-scoped_ptr<settings_private::PrefObject> PrefsUtil::GetPref(
+std::unique_ptr<settings_private::PrefObject> PrefsUtil::GetPref(
const std::string& name) {
const PrefService::Preference* pref = nullptr;
- scoped_ptr<settings_private::PrefObject> pref_object;
+ std::unique_ptr<settings_private::PrefObject> pref_object;
if (IsCrosSetting(name)) {
pref_object = GetCrosSettingsPref(name);
} else {

Powered by Google App Engine
This is Rietveld 408576698