Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / ios / chrome / browser / ui / commands / clear_browsing_data_command.mm
blob647df9e9b28caccef5cd05c8310c2457f93ccd91
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
3 // found in the LICENSE file.
5 #import "ios/chrome/browser/ui/commands/clear_browsing_data_command.h"
7 #include "base/logging.h"
8 #include "ios/chrome/browser/ui/commands/ios_command_ids.h"
10 @implementation ClearBrowsingDataCommand
12 @synthesize browserState = _browserState;
13 @synthesize mask = _mask;
15 - (instancetype)initWithTag:(NSInteger)tag {
16   NOTREACHED();
17   return nil;
20 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
21                                 mask:(int)mask {
22   self = [super initWithTag:IDC_CLEAR_BROWSING_DATA_IOS];
23   if (self) {
24     DCHECK(browserState);
25     _browserState = browserState;
26     _mask = mask;
27   }
28   return self;
31 @end