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

Unified Diff: chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.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/options/supervised_user_create_confirm_handler.cc
diff --git a/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc b/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc
index c920cbefc492a7b306807d2557914e311e9ab305..0d418822ed5aae0e4c7a464141f9ac5b08e170ab 100644
--- a/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc
+++ b/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc
@@ -54,7 +54,7 @@ class SupervisedUserCreateConfirmHandler::ProfileUpdateObserver
// affected profile and update or close as needed.
void OnProfileWasRemoved(const base::FilePath& profile_path,
const base::string16& profile_name) override {
- scoped_ptr<base::StringValue> profile_path_value(
+ std::unique_ptr<base::StringValue> profile_path_value(
base::CreateFilePathValue(profile_path));
create_confirm_handler_->web_ui()->CallJavascriptFunction(
"SupervisedUserCreateConfirmOverlay.onDeletedProfile",
@@ -68,7 +68,7 @@ class SupervisedUserCreateConfirmHandler::ProfileUpdateObserver
GetProfileAttributesWithPath(profile_path, &entry))
return;
base::string16 new_profile_name = entry->GetName();
- scoped_ptr<base::StringValue> profile_path_value(
+ std::unique_ptr<base::StringValue> profile_path_value(
base::CreateFilePathValue(profile_path));
create_confirm_handler_->web_ui()->CallJavascriptFunction(
"SupervisedUserCreateConfirmOverlay.onUpdatedProfileName",

Powered by Google App Engine
This is Rietveld 408576698