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

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

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.h
diff --git a/chrome/browser/extensions/api/settings_private/prefs_util.h b/chrome/browser/extensions/api/settings_private/prefs_util.h
index ee750e7a4af0ed1eb851bed621b4415422857c18..321a5c9e88f57e63d3086b7e640d3559ddc2b8d7 100644
--- a/chrome/browser/extensions/api/settings_private/prefs_util.h
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.h
@@ -6,10 +6,10 @@
#define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_PREFS_UTIL_H_
#include <map>
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "build/build_config.h"
#include "chrome/common/extensions/api/settings_private.h"
@@ -43,7 +43,7 @@ class PrefsUtil {
// Gets the value of the pref with the given |name|. Returns a pointer to an
// empty PrefObject if no pref is found for |name|.
- virtual scoped_ptr<api::settings_private::PrefObject> GetPref(
+ virtual std::unique_ptr<api::settings_private::PrefObject> GetPref(
const std::string& name);
// Sets the pref with the given name and value in the proper PrefService.
@@ -96,7 +96,7 @@ class PrefsUtil {
api::settings_private::PrefType GetType(const std::string& name,
base::Value::Type type);
- scoped_ptr<api::settings_private::PrefObject> GetCrosSettingsPref(
+ std::unique_ptr<api::settings_private::PrefObject> GetCrosSettingsPref(
const std::string& name);
SetPrefResult SetCrosSettingsPref(const std::string& name,

Powered by Google App Engine
This is Rietveld 408576698