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

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

Issue 1124173004: [iOS] Upstream //ios/chrome/browser/ui/commands changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation Created 5 years, 7 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
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 1da0ae0edbbc0821169431bf400a4d083d834881..647df9e9b28caccef5cd05c8310c2457f93ccd91 100644
--- a/ios/chrome/browser/ui/commands/clear_browsing_data_command.mm
+++ b/ios/chrome/browser/ui/commands/clear_browsing_data_command.mm
@@ -7,17 +7,19 @@
#include "base/logging.h"
#include "ios/chrome/browser/ui/commands/ios_command_ids.h"
-@implementation ClearBrowsingDataCommand {
- ios::ChromeBrowserState* _browserState; // Weak.
- int _mask; // Removal mask: see BrowsingDataRemover::RemoveDataMask.
-}
+@implementation ClearBrowsingDataCommand
@synthesize browserState = _browserState;
@synthesize mask = _mask;
+- (instancetype)initWithTag:(NSInteger)tag {
+ NOTREACHED();
+ return nil;
+}
+
- (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
mask:(int)mask {
- self = [super init];
+ self = [super initWithTag:IDC_CLEAR_BROWSING_DATA_IOS];
if (self) {
DCHECK(browserState);
_browserState = browserState;
@@ -26,8 +28,4 @@
return self;
}
-- (NSInteger)tag {
- return IDC_CLEAR_BROWSING_DATA_IOS;
-}
-
@end
« no previous file with comments | « ios/chrome/browser/ui/commands/clear_browsing_data_command.h ('k') | ios/chrome/browser/ui/commands/generic_chrome_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698