| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/chrome/browser/ui/commands/clear_browsing_data_command.h" | 5 #import "ios/chrome/browser/ui/commands/clear_browsing_data_command.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" | 8 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" |
| 9 | 9 |
| 10 @implementation ClearBrowsingDataCommand | 10 @implementation ClearBrowsingDataCommand |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 self = [super initWithTag:IDC_CLEAR_BROWSING_DATA_IOS]; | 24 self = [super initWithTag:IDC_CLEAR_BROWSING_DATA_IOS]; |
| 25 if (self) { | 25 if (self) { |
| 26 DCHECK(browserState); | 26 DCHECK(browserState); |
| 27 _browserState = browserState; | 27 _browserState = browserState; |
| 28 _mask = mask; | 28 _mask = mask; |
| 29 _timePeriod = timePeriod; | 29 _timePeriod = timePeriod; |
| 30 } | 30 } |
| 31 return self; | 31 return self; |
| 32 } | 32 } |
| 33 | 33 |
| 34 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState | |
| 35 mask:(int)mask { | |
| 36 return [self initWithBrowserState:browserState | |
| 37 mask:mask | |
| 38 timePeriod:browsing_data::ALL_TIME]; | |
| 39 } | |
| 40 | |
| 41 @end | 34 @end |
| OLD | NEW |