Chromium Code Reviews| Index: ios/chrome/browser/autofill/form_input_accessory_view.mm |
| diff --git a/ios/chrome/browser/autofill/form_input_accessory_view.mm b/ios/chrome/browser/autofill/form_input_accessory_view.mm |
| index a794ab43e4d2b5ab64b61d4012cc65aff8c783be..815c355e90abce92fa1f4baeda3db0f0f5b84abc 100644 |
| --- a/ios/chrome/browser/autofill/form_input_accessory_view.mm |
| +++ b/ios/chrome/browser/autofill/form_input_accessory_view.mm |
| @@ -118,6 +118,20 @@ CGFloat GetNavigationViewWidth() { |
| return self; |
| } |
| +- (instancetype)initWithFrame:(CGRect)frame customView:(UIView*)customView { |
| + self = [super initWithFrame:frame]; |
| + if (self) { |
| + _customView.reset([customView retain]); |
|
justincohen
2015/08/19 20:34:19
Why do we retain this at all
Justin Donnelly
2015/08/20 16:38:01
Don't know. My quick guess would be that something
|
| + customView.frame = |
| + CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(frame)); |
| + [self addSubview:customView]; |
| + |
| + [[self class] addBackgroundImageInView:self |
| + withImageName:@"autofill_keyboard_background"]; |
| + } |
| + return self; |
| +} |
| + |
| #pragma mark - |
| #pragma mark UIInputViewAudioFeedback |