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

Unified Diff: chrome/browser/supervised_user/supervised_user_whitelist_service.cc

Issue 2843813002: Remove SetWithoutPathExpansion (Closed)
Patch Set: Fix CrOS Error Created 3 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/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(

Powered by Google App Engine
This is Rietveld 408576698