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

Unified Diff: chrome/browser/chromeos/login/signin/token_handle_util.h

Issue 1870793002: Convert //chrome/browser/chromeos 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/chromeos/login/signin/token_handle_util.h
diff --git a/chrome/browser/chromeos/login/signin/token_handle_util.h b/chrome/browser/chromeos/login/signin/token_handle_util.h
index d64558bd8165377aa01259ea5bbcbc54ed022a0b..c958be909aaadea3cbe1484ac096f52db0085b7e 100644
--- a/chrome/browser/chromeos/login/signin/token_handle_util.h
+++ b/chrome/browser/chromeos/login/signin/token_handle_util.h
@@ -68,7 +68,7 @@ class TokenHandleUtil {
void OnOAuthError() override;
void OnNetworkError(int response_code) override;
void OnGetTokenInfoResponse(
- scoped_ptr<base::DictionaryValue> token_info) override;
+ std::unique_ptr<base::DictionaryValue> token_info) override;
void NotifyDone();
private:
@@ -85,15 +85,15 @@ class TokenHandleUtil {
void OnObtainTokenComplete(const AccountId& account_id);
// Map of pending check operations.
- base::ScopedPtrHashMap<std::string, scoped_ptr<TokenDelegate>>
+ base::ScopedPtrHashMap<std::string, std::unique_ptr<TokenDelegate>>
validation_delegates_;
// Map of pending obtain operations.
- base::ScopedPtrHashMap<AccountId, scoped_ptr<TokenDelegate>>
+ base::ScopedPtrHashMap<AccountId, std::unique_ptr<TokenDelegate>>
obtain_delegates_;
// Instance of GAIA Client.
- scoped_ptr<gaia::GaiaOAuthClient> gaia_client_;
+ std::unique_ptr<gaia::GaiaOAuthClient> gaia_client_;
base::WeakPtrFactory<TokenHandleUtil> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698