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

Unified Diff: remoting/host/oauth_token_getter_impl.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/host/native_messaging/pipe_messaging_channel.cc ('k') | remoting/host/oauth_token_getter_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/oauth_token_getter_impl.h
diff --git a/remoting/host/oauth_token_getter_impl.h b/remoting/host/oauth_token_getter_impl.h
index 5d318f82d5790981fbed8349267368751b880386..8e5ae33e7efbf72d2c65366ad056dd32d3c174b9 100644
--- a/remoting/host/oauth_token_getter_impl.h
+++ b/remoting/host/oauth_token_getter_impl.h
@@ -25,7 +25,7 @@ class OAuthTokenGetterImpl : public OAuthTokenGetter,
public base::NonThreadSafe,
public gaia::GaiaOAuthClient::Delegate {
public:
- OAuthTokenGetterImpl(scoped_ptr<OAuthCredentials> oauth_credentials,
+ OAuthTokenGetterImpl(std::unique_ptr<OAuthCredentials> oauth_credentials,
const scoped_refptr<net::URLRequestContextGetter>&
url_request_context_getter,
bool auto_refresh);
@@ -52,8 +52,8 @@ class OAuthTokenGetterImpl : public OAuthTokenGetter,
const std::string& access_token);
void RefreshOAuthToken();
- scoped_ptr<OAuthCredentials> oauth_credentials_;
- scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_;
+ std::unique_ptr<OAuthCredentials> oauth_credentials_;
+ std::unique_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_;
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
bool refreshing_oauth_token_ = false;
@@ -61,7 +61,7 @@ class OAuthTokenGetterImpl : public OAuthTokenGetter,
std::string oauth_access_token_;
base::Time auth_token_expiry_time_;
std::queue<OAuthTokenGetter::TokenCallback> pending_callbacks_;
- scoped_ptr<base::OneShotTimer> refresh_timer_;
+ std::unique_ptr<base::OneShotTimer> refresh_timer_;
};
} // namespace remoting
« no previous file with comments | « remoting/host/native_messaging/pipe_messaging_channel.cc ('k') | remoting/host/oauth_token_getter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698