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

Unified Diff: remoting/ios/app/client_connection_view_controller.mm

Issue 2949713002: [CRD iOS] Refactor an interface for RemotingAuthorization (Closed)
Patch Set: Rebase Created 3 years, 6 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
Index: remoting/ios/app/client_connection_view_controller.mm
diff --git a/remoting/ios/app/client_connection_view_controller.mm b/remoting/ios/app/client_connection_view_controller.mm
index 5ccc95486ab132d18c1677dd207e334081c9bd2e..81326f0f1c6850278df87bad75e42828c099e016 100644
--- a/remoting/ios/app/client_connection_view_controller.mm
+++ b/remoting/ios/app/client_connection_view_controller.mm
@@ -61,14 +61,12 @@ static const CGFloat kKeyboardAnimationTime = 0.3;
__weak RemotingClient* weakClient = _client;
[[RemotingService SharedInstance].authentication
- callbackWithAccessToken:base::BindBlockArc(^(
- remoting::OAuthTokenGetter::Status status,
- const std::string& user_email,
- const std::string& access_token) {
+ callbackWithAccessToken:^(RemotingAuthenticationStatus status,
+ NSString* userEmail, NSString* accessToken) {
[weakClient connectToHost:hostInfo
- username:base::SysUTF8ToNSString(user_email)
- accessToken:base::SysUTF8ToNSString(access_token)];
- })];
+ username:userEmail
+ accessToken:accessToken];
+ }];
_remoteHostName = hostInfo.hostName;

Powered by Google App Engine
This is Rietveld 408576698