Index: chrome/browser/supervised_user/supervised_user_whitelist_service.cc |
diff --git a/chrome/browser/supervised_user/supervised_user_whitelist_service.cc b/chrome/browser/supervised_user/supervised_user_whitelist_service.cc |
index eb334018320468660fd4fab2068b730f2458b355..901fa2efd6e25e62584a2dd7037b0b02510fdb1f 100644 |
--- a/chrome/browser/supervised_user/supervised_user_whitelist_service.cc |
+++ b/chrome/browser/supervised_user/supervised_user_whitelist_service.cc |
@@ -7,9 +7,11 @@ |
#include <stddef.h> |
#include <string> |
+#include <utility> |
#include "base/command_line.h" |
#include "base/files/file_path.h" |
+#include "base/memory/ptr_util.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/metrics/user_metrics.h" |
#include "base/metrics/user_metrics_action.h" |
@@ -282,7 +284,7 @@ void SupervisedUserWhitelistService::AddNewWhitelist( |
RegisterWhitelist(whitelist.id(), whitelist.name(), FROM_SYNC); |
std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue); |
SetWhitelistProperties(dict.get(), whitelist); |
- pref_dict->SetWithoutPathExpansion(whitelist.id(), dict.release()); |
+ pref_dict->SetWithoutPathExpansion(whitelist.id(), std::move(dict)); |
} |
void SupervisedUserWhitelistService::SetWhitelistProperties( |