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

Side by Side Diff: remoting/ios/app/remoting_menu_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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698