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

Unified Diff: chrome/browser/ui/webui/chromeos/sim_unlock_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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc ('k') | chrome/browser/ui/webui/chromeos/slow_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc b/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
index a113aaae3afac8980b01c09ac655178c512c1a9a..36b6f375ad60d0ddf77aa9860bf99e98f100a899 100644
--- a/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
@@ -205,9 +205,10 @@ class SimUnlockHandler : public WebUIMessageHandler,
void ChangePin(const std::string& old_pin, const std::string& new_pin);
void UnblockPin(const std::string& puk, const std::string& new_pin);
void PinOperationSuccessCallback(const std::string& operation_name);
- void PinOperationErrorCallback(const std::string& operation_name,
- const std::string& error_name,
- scoped_ptr<base::DictionaryValue> error_data);
+ void PinOperationErrorCallback(
+ const std::string& operation_name,
+ const std::string& error_name,
+ std::unique_ptr<base::DictionaryValue> error_data);
// Called when an asynchronous PIN operation has completed.
void OnPinOperationCompleted(PinOperationError error);
@@ -552,7 +553,7 @@ void SimUnlockHandler::PinOperationSuccessCallback(
void SimUnlockHandler::PinOperationErrorCallback(
const std::string& operation_name,
const std::string& error_name,
- scoped_ptr<base::DictionaryValue> error_data) {
+ std::unique_ptr<base::DictionaryValue> error_data) {
NET_LOG_ERROR("Pin operation failed: " + error_name, operation_name);
PinOperationError pin_error;
if (error_name == NetworkDeviceHandler::kErrorIncorrectPin ||
« no previous file with comments | « chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc ('k') | chrome/browser/ui/webui/chromeos/slow_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698