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

Unified Diff: remoting/test/access_token_fetcher.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/signaling/xmpp_stream_parser_unittest.cc ('k') | remoting/test/access_token_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/access_token_fetcher.h
diff --git a/remoting/test/access_token_fetcher.h b/remoting/test/access_token_fetcher.h
index 65301a9dfaba31d7c44692342ff50000b15cc78f..46d499c9b5238a0607cdf57f61ba3d2b301b72e9 100644
--- a/remoting/test/access_token_fetcher.h
+++ b/remoting/test/access_token_fetcher.h
@@ -5,12 +5,12 @@
#ifndef REMOTING_TEST_ACCESS_TOKEN_FETCHER_H_
#define REMOTING_TEST_ACCESS_TOKEN_FETCHER_H_
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "google_apis/gaia/gaia_oauth_client.h"
namespace remoting {
@@ -51,9 +51,9 @@ class AccessTokenFetcher : public gaia::GaiaOAuthClient::Delegate {
void OnGetUserEmailResponse(const std::string& user_email) override;
void OnGetUserIdResponse(const std::string& user_id) override;
void OnGetUserInfoResponse(
- scoped_ptr<base::DictionaryValue> user_info) override;
+ std::unique_ptr<base::DictionaryValue> user_info) override;
void OnGetTokenInfoResponse(
- scoped_ptr<base::DictionaryValue> token_info) override;
+ std::unique_ptr<base::DictionaryValue> token_info) override;
void OnOAuthError() override;
void OnNetworkError(int response_code) override;
@@ -78,7 +78,7 @@ class AccessTokenFetcher : public gaia::GaiaOAuthClient::Delegate {
gaia::OAuthClientInfo oauth_client_info_;
// Used to make token requests to GAIA.
- scoped_ptr<gaia::GaiaOAuthClient> auth_client_;
+ std::unique_ptr<gaia::GaiaOAuthClient> auth_client_;
DISALLOW_COPY_AND_ASSIGN(AccessTokenFetcher);
};
« no previous file with comments | « remoting/signaling/xmpp_stream_parser_unittest.cc ('k') | remoting/test/access_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698