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

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

Issue 1865213004: Convert //chrome/browser/ui 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/ui/webui/flags_ui.cc
diff --git a/chrome/browser/ui/webui/flags_ui.cc b/chrome/browser/ui/webui/flags_ui.cc
index 4827404ea339d23118bc66e0accabe088cc4727e..1cec5091d98ed661d28b4294e0c2653d54241f9e 100644
--- a/chrome/browser/ui/webui/flags_ui.cc
+++ b/chrome/browser/ui/webui/flags_ui.cc
@@ -142,7 +142,7 @@ class FlagsDOMHandler : public WebUIMessageHandler {
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_;
@@ -187,8 +187,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);
about_flags::GetFlagFeatureEntries(flags_storage_.get(),
access_,
supported_features.get(),
« no previous file with comments | « chrome/browser/ui/webui/fileicon_source_unittest.cc ('k') | chrome/browser/ui/webui/foreign_session_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698