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

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: Rebasing... Created 5 years, 11 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/remoting_me2me_host.cc ('k') | remoting/host/signaling_connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/signaling_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698