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

Unified Diff: ios/chrome/browser/web/mailto_url_rewriter.mm

Issue 2870783002: Adds Compose Email Settings UI for deprecating Native App Launcher (Closed)
Patch Set: replied to comments from rohitrao 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: ios/chrome/browser/web/mailto_url_rewriter.mm
diff --git a/ios/chrome/browser/web/mailto_url_rewriter.mm b/ios/chrome/browser/web/mailto_url_rewriter.mm
index 8f15372bacf22ac8c625eb724d7f57c003b32c30..5bb6b26f089792357cd5cd9970c096d2100420f4 100644
--- a/ios/chrome/browser/web/mailto_url_rewriter.mm
+++ b/ios/chrome/browser/web/mailto_url_rewriter.mm
@@ -80,7 +80,11 @@ NSString* const kMailtoDefaultHandlerKey = @"MailtoHandlerDefault";
}
- (NSArray<MailtoHandler*>*)defaultHandlers {
- return [_handlers allValues];
+ return [[_handlers allValues]
+ sortedArrayUsingComparator:^NSComparisonResult(
+ MailtoHandler* _Nonnull obj1, MailtoHandler* _Nonnull obj2) {
+ return [[obj1 appName] compare:[obj2 appName]];
+ }];
}
- (NSString*)defaultHandlerID {
« no previous file with comments | « ios/chrome/browser/web/mailto_url_rewriter.h ('k') | ios/chrome/browser/web/mailto_url_rewriter_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698