Chromium Code Reviews| Index: ios/chrome/browser/ui/commands/clear_browsing_data_command.mm |
| diff --git a/ios/chrome/browser/ui/commands/clear_browsing_data_command.mm b/ios/chrome/browser/ui/commands/clear_browsing_data_command.mm |
| index 647df9e9b28caccef5cd05c8310c2457f93ccd91..8a4eae71e3e1da3d46401d82003474db4a79c267 100644 |
| --- a/ios/chrome/browser/ui/commands/clear_browsing_data_command.mm |
| +++ b/ios/chrome/browser/ui/commands/clear_browsing_data_command.mm |
| @@ -11,6 +11,7 @@ |
| @synthesize browserState = _browserState; |
| @synthesize mask = _mask; |
| +@synthesize timePeriod = _timePeriod; |
| - (instancetype)initWithTag:(NSInteger)tag { |
| NOTREACHED(); |
| @@ -18,6 +19,19 @@ |
| } |
| - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState |
| + mask:(int)mask |
| + timePeriod:(browsing_data::TimePeriod)timePeriod { |
| + self = [super initWithTag:IDC_CLEAR_BROWSING_DATA_IOS]; |
| + if (self) { |
| + DCHECK(browserState); |
| + _browserState = browserState; |
| + _mask = mask; |
| + _timePeriod = timePeriod; |
| + } |
| + return self; |
| +} |
| + |
| +- (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState |
|
msramek
2016/08/29 14:20:59
Shouldn't we explicitly initialize _timePeriod to
ioanap
2016/08/30 11:32:08
Done.
|
| mask:(int)mask { |
| self = [super initWithTag:IDC_CLEAR_BROWSING_DATA_IOS]; |
| if (self) { |