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

Unified Diff: ios/chrome/browser/ui/commands/clear_browsing_data_command.mm

Issue 2270063005: Add support for time based deletion of browsing data on iOS (Closed)
Patch Set: Updated comment in AccountConsistencyService Created 4 years, 3 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/ui/commands/clear_browsing_data_command.h ('k') | ios/crnet/crnet_environment.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0b07e9b75b6b7ea15a91929029bdab1ddc95e6b0 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,14 +19,23 @@
}
- (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
- mask:(int)mask {
+ 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
+ mask:(int)mask {
+ return [self initWithBrowserState:browserState
+ mask:mask
+ timePeriod:browsing_data::ALL_TIME];
+}
+
@end
« no previous file with comments | « ios/chrome/browser/ui/commands/clear_browsing_data_command.h ('k') | ios/crnet/crnet_environment.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698