Chromium Code Reviews

Unified Diff: remoting/host/signaling_connector.h

Issue 719983002: Reporting of policy errors via host-offline-reason: part 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hor-nohoststatussender
Patch Set: git cl format Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: remoting/host/signaling_connector.h
diff --git a/remoting/host/signaling_connector.h b/remoting/host/signaling_connector.h
index feba6cfe6b5d93a0db9759e691eb5bb40d209e56..acb69218c19afd49df16ae1a2a5e48ec9f0f7327 100644
--- a/remoting/host/signaling_connector.h
+++ b/remoting/host/signaling_connector.h
@@ -39,8 +39,7 @@ class SignalingConnector
// May be called immediately after the constructor to enable OAuth
// access token updating.
- // |oauth_token_getter| must outlive SignalingConnector.
- void EnableOAuth(OAuthTokenGetter* oauth_token_getter);
+ void EnableOAuth(scoped_ptr<OAuthTokenGetter> oauth_token_getter);
// OAuthTokenGetter callback.
void OnAccessToken(OAuthTokenGetter::Status status,
@@ -69,7 +68,7 @@ class SignalingConnector
base::Closure auth_failed_callback_;
scoped_ptr<DnsBlackholeChecker> dns_blackhole_checker_;
- OAuthTokenGetter* oauth_token_getter_;
+ scoped_ptr<OAuthTokenGetter> oauth_token_getter_;
// Number of times we tried to connect without success.
int reconnect_attempts_;

Powered by Google App Engine