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

Unified Diff: remoting/ios/facade/remoting_service.mm

Issue 2912293003: [CRD iOS] Consistent host list order and showing last online time (Closed)
Patch Set: Fix comment 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
Index: remoting/ios/facade/remoting_service.mm
diff --git a/remoting/ios/facade/remoting_service.mm b/remoting/ios/facade/remoting_service.mm
index 63be2edb122ca9f3d8942a5f6ab7b65529b11260..10096f18f6a3a2a0083ddfe0731485ed948b6343 100644
--- a/remoting/ios/facade/remoting_service.mm
+++ b/remoting/ios/facade/remoting_service.mm
@@ -21,6 +21,7 @@
#import "remoting/ios/facade/remoting_service.h"
#import "remoting/ios/keychain_wrapper.h"
+#include "base/i18n/time_formatting.h"
#include "base/logging.h"
#include "base/strings/sys_string_conversions.h"
#include "net/url_request/url_request_context_getter.h"
@@ -109,6 +110,8 @@ NSString* const kUserInfo = @"kUserInfo";
host.jabberId = base::SysUTF8ToNSString(host_info.host_jid);
host.publicKey = base::SysUTF8ToNSString(host_info.public_key);
host.status = base::SysUTF8ToNSString(status);
+ host.updatedTime = base::SysUTF16ToNSString(
+ base::TimeFormatShortDateAndTime(host_info.updated_time));
[hosts addObject:host];
}
_hosts = hosts;
« remoting/ios/domain/host_info.mm ('K') | « remoting/ios/facade/host_list_fetcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698