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

Unified Diff: chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc

Issue 1878143002: Convert //chrome/browser/supervised_user from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/supervised_user/child_accounts/family_info_fetcher.cc
diff --git a/chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc b/chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc
index 79adcf032a54b266c01572aa196c0dda134d8ffc..85934b97d9869d981f73e6bc29a22dfcd8936a7d 100644
--- a/chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc
+++ b/chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc
@@ -275,7 +275,7 @@ void FamilyInfoFetcher::ParseProfile(const base::DictionaryValue* dict,
}
void FamilyInfoFetcher::FamilyProfileFetched(const std::string& response) {
- scoped_ptr<base::Value> value = base::JSONReader::Read(response);
+ std::unique_ptr<base::Value> value = base::JSONReader::Read(response);
const base::DictionaryValue* dict = NULL;
if (!value || !value->GetAsDictionary(&dict)) {
consumer_->OnFailure(SERVICE_ERROR);
@@ -305,7 +305,7 @@ void FamilyInfoFetcher::FamilyProfileFetched(const std::string& response) {
}
void FamilyInfoFetcher::FamilyMembersFetched(const std::string& response) {
- scoped_ptr<base::Value> value = base::JSONReader::Read(response);
+ std::unique_ptr<base::Value> value = base::JSONReader::Read(response);
const base::DictionaryValue* dict = NULL;
if (!value || !value->GetAsDictionary(&dict)) {
consumer_->OnFailure(SERVICE_ERROR);

Powered by Google App Engine
This is Rietveld 408576698