OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if !defined(__has_feature) || !__has_feature(objc_arc) | 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
6 #error "This file requires ARC support." | 6 #error "This file requires ARC support." |
7 #endif | 7 #endif |
8 | 8 |
9 #import "remoting/ios/app/remoting_menu_view_controller.h" | 9 #import "remoting/ios/app/remoting_menu_view_controller.h" |
10 | 10 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 } | 196 } |
197 | 197 |
198 - (void)didTapGetAccessCode:(id)sender { | 198 - (void)didTapGetAccessCode:(id)sender { |
199 NSString* authUri = | 199 NSString* authUri = |
200 [NSString stringWithCString:GetAuthorizationCodeUri().c_str() | 200 [NSString stringWithCString:GetAuthorizationCodeUri().c_str() |
201 encoding:[NSString defaultCStringEncoding]]; | 201 encoding:[NSString defaultCStringEncoding]]; |
202 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:authUri]]; | 202 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:authUri]]; |
203 } | 203 } |
204 | 204 |
205 - (void)didTapLogout:(id)sender { | 205 - (void)didTapLogout:(id)sender { |
206 [[RemotingService SharedInstance].authentication logout]; | 206 [RemotingService.instance.authentication logout]; |
207 } | 207 } |
208 | 208 |
209 @end | 209 @end |
OLD | NEW |