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

Unified Diff: chrome/browser/chromeos/settings/stub_cros_settings_provider.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/settings/stub_cros_settings_provider.cc
diff --git a/chrome/browser/chromeos/settings/stub_cros_settings_provider.cc b/chrome/browser/chromeos/settings/stub_cros_settings_provider.cc
index ec2b159b0fe6c7f34431e67f169b3d565ed7b582..77eff9255c1d705c48380722a72e4097e8822423 100644
--- a/chrome/browser/chromeos/settings/stub_cros_settings_provider.cc
+++ b/chrome/browser/chromeos/settings/stub_cros_settings_provider.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/chromeos/settings/stub_cros_settings_provider.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/values.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "chrome/browser/chromeos/settings/device_settings_provider.h"
@@ -66,11 +67,11 @@ void StubCrosSettingsProvider::SetDefaults() {
values_.SetBoolean(kAccountsPrefAllowNewUser, true);
values_.SetBoolean(kAccountsPrefSupervisedUsersEnabled, true);
values_.SetBoolean(kAccountsPrefShowUserNamesOnSignIn, true);
- values_.SetValue(kAccountsPrefUsers, make_scoped_ptr(new base::ListValue));
+ values_.SetValue(kAccountsPrefUsers, base::WrapUnique(new base::ListValue));
values_.SetBoolean(kAttestationForContentProtectionEnabled, true);
values_.SetBoolean(kStatsReportingPref, true);
values_.SetValue(kAccountsPrefDeviceLocalAccounts,
- make_scoped_ptr(new base::ListValue));
+ base::WrapUnique(new base::ListValue));
// |kDeviceOwner| will be set to the logged-in user by |UserManager|.
}

Powered by Google App Engine
This is Rietveld 408576698