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

Unified Diff: remoting/ios/host.mm

Issue 475333004: Remove old Chromoting iOS client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/ios/host.h ('k') | remoting/ios/host_cell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/ios/host.mm
diff --git a/remoting/ios/host.mm b/remoting/ios/host.mm
deleted file mode 100644
index 592be879146f97d932b2cdf5116225f63ccfb90f..0000000000000000000000000000000000000000
--- a/remoting/ios/host.mm
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 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/ios/host.h"
-
-@implementation Host
-
-@synthesize createdTime = _createdTime;
-@synthesize hostId = _hostId;
-@synthesize hostName = _hostName;
-@synthesize hostVersion = _hostVersion;
-@synthesize jabberId = _jabberId;
-@synthesize kind = _kind;
-@synthesize publicKey = _publicKey;
-@synthesize status = _status;
-@synthesize updatedTime = _updatedTime;
-
-// Parse jsonData into Host list
-+ (NSMutableArray*)parseListFromJSON:(NSMutableData*)data {
- NSError* error;
-
- NSDictionary* json = [NSJSONSerialization JSONObjectWithData:data
- options:kNilOptions
- error:&error];
-
- NSDictionary* dataDict = [json objectForKey:@"data"];
-
- NSArray* availableServers = [dataDict objectForKey:@"items"];
-
- NSMutableArray* serverList = [[NSMutableArray alloc] init];
-
- NSUInteger idx = 0;
- NSDictionary* svr;
- NSUInteger count = [availableServers count];
-
- while (idx < count) {
- svr = [availableServers objectAtIndex:idx++];
- Host* host = [[Host alloc] init];
- host.createdTime = [svr objectForKey:@"createdTime"];
- host.hostId = [svr objectForKey:@"hostId"];
- host.hostName = [svr objectForKey:@"hostName"];
- host.hostVersion = [svr objectForKey:@"hostVersion"];
- host.jabberId = [svr objectForKey:@"jabberId"];
- host.kind = [svr objectForKey:@"kind"];
- host.publicKey = [svr objectForKey:@"publicKey"];
- host.status = [svr objectForKey:@"status"];
- host.updatedTime = [svr objectForKey:@"updatedTime"];
- [serverList addObject:host];
- }
-
- return serverList;
-}
-
-@end
« no previous file with comments | « remoting/ios/host.h ('k') | remoting/ios/host_cell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698