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

Unified Diff: remoting/client/ios/domain/user_info.mm

Issue 2871993003: Moving the iOS directory to be remoting top level. (Closed)
Patch Set: //remoting/ios was the old landing target for the internal iOS application. Fix. Created 3 years, 7 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/client/ios/domain/user_info.h ('k') | remoting/client/ios/facade/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ios/domain/user_info.mm
diff --git a/remoting/client/ios/domain/user_info.mm b/remoting/client/ios/domain/user_info.mm
deleted file mode 100644
index 3257fd22551bbbc04c0cfe514aa0086f626e60d8..0000000000000000000000000000000000000000
--- a/remoting/client/ios/domain/user_info.mm
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "remoting/client/ios/domain/user_info.h"
-
-@implementation UserInfo
-
-@synthesize userId = _userId;
-@synthesize userFullName = _userFullName;
-@synthesize userEmail = _userEmail;
-@synthesize refreshToken = _refreshToken;
-
-// Parse jsonData into Host list.
-+ (UserInfo*)parseListFromJSON:(NSMutableData*)data {
- NSError* error;
-
- NSDictionary* json = [NSJSONSerialization JSONObjectWithData:data
- options:kNilOptions
- error:&error];
-
- UserInfo* user = [[UserInfo alloc] init];
- user.userId = [json objectForKey:@"userId"];
- user.userFullName = [json objectForKey:@"userFullName"];
- user.userEmail = [json objectForKey:@"userEmail"];
- user.refreshToken = [json objectForKey:@"refreshToken"];
-
- return user;
-}
-
-- (BOOL)isAuthenticated {
- if (_userEmail && _userEmail.length > 0 && _refreshToken &&
- _refreshToken.length > 0) {
- return YES;
- }
- return NO;
-}
-
-- (NSComparisonResult)compare:(UserInfo*)user {
- return [self.userId compare:user.userId];
-}
-
-- (NSString*)description {
- return [NSString stringWithFormat:@"UserInfo: userEmail=%@ refreshToken=%@",
- _userEmail, _refreshToken];
-}
-
-@end
« no previous file with comments | « remoting/client/ios/domain/user_info.h ('k') | remoting/client/ios/facade/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698