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

Unified Diff: ios/chrome/browser/ui/webui/flags_ui.cc

Issue 1861593005: Convert //ios 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: ios/chrome/browser/ui/webui/flags_ui.cc
diff --git a/ios/chrome/browser/ui/webui/flags_ui.cc b/ios/chrome/browser/ui/webui/flags_ui.cc
index 9d48d271e788f46145418a8995933a5623794480..c72ce345afe2deadb2ab890d763e46321a7217b5 100644
--- a/ios/chrome/browser/ui/webui/flags_ui.cc
+++ b/ios/chrome/browser/ui/webui/flags_ui.cc
@@ -113,7 +113,7 @@ class FlagsDOMHandler : public web::WebUIIOSMessageHandler {
void HandleResetAllFlags(const base::ListValue* args);
private:
- scoped_ptr<flags_ui::FlagsStorage> flags_storage_;
+ std::unique_ptr<flags_ui::FlagsStorage> flags_storage_;
flags_ui::FlagAccess access_;
bool experimental_features_requested_;
@@ -158,8 +158,8 @@ void FlagsDOMHandler::HandleRequestExperimentalFeatures(
base::DictionaryValue results;
- scoped_ptr<base::ListValue> supported_features(new base::ListValue);
- scoped_ptr<base::ListValue> unsupported_features(new base::ListValue);
+ std::unique_ptr<base::ListValue> supported_features(new base::ListValue);
+ std::unique_ptr<base::ListValue> unsupported_features(new base::ListValue);
GetFlagFeatureEntries(flags_storage_.get(), access_, supported_features.get(),
unsupported_features.get());
results.Set(flags_ui::kSupportedFeatures, supported_features.release());

Powered by Google App Engine
This is Rietveld 408576698