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

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: Minor tweaks after end-to-end tests and self-review. Created 6 years, 1 month 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: remoting/host/signaling_connector.h
diff --git a/remoting/host/signaling_connector.h b/remoting/host/signaling_connector.h
index 4447cf48f68e693b602b964c0d0e69b903b40902..32d933e998b05b0526c0a23aa32c3edc5e819a3f 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,
@@ -71,7 +70,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
This is Rietveld 408576698