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

Side by Side 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 unified diff | Download patch
OLDNEW
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
11 ios::ChromeBrowserState* _browserState; // Weak.
12 int _mask; // Removal mask: see BrowsingDataRemover::RemoveDataMask.
13 }
14 11
15 @synthesize browserState = _browserState; 12 @synthesize browserState = _browserState;
16 @synthesize mask = _mask; 13 @synthesize mask = _mask;
17 14
15 - (instancetype)initWithTag:(NSInteger)tag {
16 NOTREACHED();
17 return nil;
18 }
19
18 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState 20 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
19 mask:(int)mask { 21 mask:(int)mask {
20 self = [super init]; 22 self = [super initWithTag:IDC_CLEAR_BROWSING_DATA_IOS];
21 if (self) { 23 if (self) {
22 DCHECK(browserState); 24 DCHECK(browserState);
23 _browserState = browserState; 25 _browserState = browserState;
24 _mask = mask; 26 _mask = mask;
25 } 27 }
26 return self; 28 return self;
27 } 29 }
28 30
29 - (NSInteger)tag {
30 return IDC_CLEAR_BROWSING_DATA_IOS;
31 }
32
33 @end 31 @end
OLDNEW
« 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