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

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

Issue 2949713002: [CRD iOS] Refactor an interface for RemotingAuthorization (Closed)
Patch Set: Resolve feedback 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..888ee2c358ea998c6de2cf1d4f89f90508397ad5 100644
--- a/remoting/ios/app/client_connection_view_controller.mm
+++ b/remoting/ios/app/client_connection_view_controller.mm
@@ -60,15 +60,13 @@ static const CGFloat kKeyboardAnimationTime = 0.3;
_client = [[RemotingClient alloc] init];
__weak RemotingClient* weakClient = _client;
- [[RemotingService SharedInstance].authentication
- callbackWithAccessToken:base::BindBlockArc(^(
- remoting::OAuthTokenGetter::Status status,
- const std::string& user_email,
- const std::string& access_token) {
+ [RemotingService.instance.authentication
+ 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