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

Side by Side Diff: ios/chrome/browser/browsing_data/browsing_data_removal_controller.mm

Issue 2671743002: Separate state of basic and advanced tab in CBD dialog (Closed)
Patch Set: rebase and fix compilation Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/browsing_data/browsing_data_removal_controller.h" 5 #import "ios/chrome/browser/browsing_data/browsing_data_removal_controller.h"
6 6
7 #import <WebKit/WebKit.h> 7 #import <WebKit/WebKit.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 callbackCounter->IncrementCount(); 166 callbackCounter->IncrementCount();
167 base::Time beginDeleteTime = 167 base::Time beginDeleteTime =
168 browsing_data::CalculateBeginDeleteTime(timePeriod); 168 browsing_data::CalculateBeginDeleteTime(timePeriod);
169 [self removeIOSSpecificBrowsingDataFromBrowserState:browserState 169 [self removeIOSSpecificBrowsingDataFromBrowserState:browserState
170 mask:mask 170 mask:mask
171 deleteBegin:beginDeleteTime 171 deleteBegin:beginDeleteTime
172 completionHandler: 172 completionHandler:
173 decrementCallbackCounterCount]; 173 decrementCallbackCounterCount];
174 174
175 if (mask & IOSChromeBrowsingDataRemover::REMOVE_DOWNLOADS) { 175 if (mask & IOSChromeBrowsingDataRemover::REMOVE_DOWNLOADS) {
176 DCHECK_EQ(browsing_data::ALL_TIME, timePeriod) 176 DCHECK_EQ(browsing_data::TimePeriod::ALL_TIME, timePeriod)
177 << "Partial clearing not supported"; 177 << "Partial clearing not supported";
178 callbackCounter->IncrementCount(); 178 callbackCounter->IncrementCount();
179 [_delegate 179 [_delegate
180 removeExternalFilesForBrowserState:browserState 180 removeExternalFilesForBrowserState:browserState
181 completionHandler:decrementCallbackCounterCount]; 181 completionHandler:decrementCallbackCounterCount];
182 } 182 }
183 183
184 if (!browserState->IsOffTheRecord()) { 184 if (!browserState->IsOffTheRecord()) {
185 callbackCounter->IncrementCount(); 185 callbackCounter->IncrementCount();
186 _browsingDataRemoverHelper->Remove(browserState, mask, timePeriod, 186 _browsingDataRemoverHelper->Remove(browserState, mask, timePeriod,
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 444
445 - (BOOL)hasPendingRemovalOperations:(ios::ChromeBrowserState*)browserState { 445 - (BOOL)hasPendingRemovalOperations:(ios::ChromeBrowserState*)browserState {
446 return _pendingRemovalCount[browserState] != 0; 446 return _pendingRemovalCount[browserState] != 0;
447 } 447 }
448 448
449 - (void)browserStateDestroyed:(ios::ChromeBrowserState*)browserState { 449 - (void)browserStateDestroyed:(ios::ChromeBrowserState*)browserState {
450 _pendingRemovalCount.erase(browserState); 450 _pendingRemovalCount.erase(browserState);
451 } 451 }
452 452
453 @end 453 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698