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

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

Issue 2889183005: Show all mailto: handlers, but dim unavailable ones. (Closed)
Patch Set: fixed BUILD.gn and unit tests 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 | « ios/chrome/browser/web/fake_mailto_handler_helpers.h ('k') | ios/chrome/browser/web/mailto_url_rewriter.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/fake_mailto_handler_helpers.mm
diff --git a/ios/chrome/browser/web/fake_mailto_handler_helpers.mm b/ios/chrome/browser/web/fake_mailto_handler_helpers.mm
index 870298e552436d72f4acaf0091980d988969eddf..c87eee89464dc948a2a04a4e72047bf2a702ce7c 100644
--- a/ios/chrome/browser/web/fake_mailto_handler_helpers.mm
+++ b/ios/chrome/browser/web/fake_mailto_handler_helpers.mm
@@ -20,6 +20,18 @@
}
@end
+@implementation FakeMailtoHandlerForTesting
+- (instancetype)init {
+ return [super initWithName:@"FakeMail" appStoreID:@"12345678"];
+}
+- (BOOL)isAvailable {
+ return NO;
+}
+- (NSString*)beginningScheme {
+ return @"fakemail:/compose?";
+}
+@end
+
@implementation CountingMailtoURLRewriterObserver
@synthesize changeCount = _changeCount;
- (void)rewriterDidChange:(MailtoURLRewriter*)rewriter {
« no previous file with comments | « ios/chrome/browser/web/fake_mailto_handler_helpers.h ('k') | ios/chrome/browser/web/mailto_url_rewriter.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698