| Index: ios/chrome/browser/web/mailto_handler_gmail.mm
|
| diff --git a/ios/chrome/browser/web/mailto_handler_gmail.mm b/ios/chrome/browser/web/mailto_handler_gmail.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..23a37a9cb0489de46c1a2b13261d84a42a63556d
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/web/mailto_handler_gmail.mm
|
| @@ -0,0 +1,28 @@
|
| +// 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.
|
| +
|
| +#import "ios/chrome/browser/web/mailto_handler_gmail.h"
|
| +#include "base/strings/sys_string_conversions.h"
|
| +#include "url/gurl.h"
|
| +#include "url/url_constants.h"
|
| +
|
| +#import <UIKit/UIKit.h>
|
| +
|
| +#if !defined(__has_feature) || !__has_feature(objc_arc)
|
| +#error "This file requires ARC support."
|
| +#endif
|
| +
|
| +@implementation MailtoHandlerGmail
|
| +
|
| +- (instancetype)init {
|
| + // Gmail product name is not supposed to be localized.
|
| + self = [super initWithName:@"Gmail" appStoreID:@"422689480"];
|
| + return self;
|
| +}
|
| +
|
| +- (NSString*)beginningScheme {
|
| + return @"googlegmail:/co?";
|
| +}
|
| +
|
| +@end
|
|
|