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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover.cc

Issue 2288823002: [Offline Pages] Removes check on deprecated IsOfflinePagesEnabled flag from BrowsingDataRemover (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "chrome/browser/browsing_data/browsing_data_remover.h" 5 #include "chrome/browser/browsing_data/browsing_data_remover.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 // makes a JNI call into a Java-side AsyncTask, so don't wait for the reply. 1094 // makes a JNI call into a Java-side AsyncTask, so don't wait for the reply.
1095 waiting_for_clear_webapp_data_ = true; 1095 waiting_for_clear_webapp_data_ = true;
1096 webapp_registry_->UnregisterWebappsForUrls( 1096 webapp_registry_->UnregisterWebappsForUrls(
1097 filter, 1097 filter,
1098 base::Bind(&BrowsingDataRemover::OnClearedWebappData, 1098 base::Bind(&BrowsingDataRemover::OnClearedWebappData,
1099 weak_ptr_factory_.GetWeakPtr())); 1099 weak_ptr_factory_.GetWeakPtr()));
1100 } 1100 }
1101 1101
1102 // For now we're considering offline pages as cache, so if we're removing 1102 // For now we're considering offline pages as cache, so if we're removing
1103 // cache we should remove offline pages as well. 1103 // cache we should remove offline pages as well.
1104 if ((remove_mask & REMOVE_CACHE) && offline_pages::IsOfflinePagesEnabled()) { 1104 if ((remove_mask & REMOVE_CACHE)) {
1105 waiting_for_clear_offline_page_data_ = true; 1105 waiting_for_clear_offline_page_data_ = true;
1106 offline_pages::OfflinePageModelFactory::GetForBrowserContext(profile_) 1106 offline_pages::OfflinePageModelFactory::GetForBrowserContext(profile_)
1107 ->DeleteCachedPagesByURLPredicate( 1107 ->DeleteCachedPagesByURLPredicate(
1108 filter, base::Bind(&BrowsingDataRemover::OnClearedOfflinePageData, 1108 filter, base::Bind(&BrowsingDataRemover::OnClearedOfflinePageData,
1109 weak_ptr_factory_.GetWeakPtr())); 1109 weak_ptr_factory_.GetWeakPtr()));
1110 } 1110 }
1111 #endif 1111 #endif
1112 1112
1113 // Record the combined deletion of cookies and cache. 1113 // Record the combined deletion of cookies and cache.
1114 CookieOrCacheDeletionChoice choice = NEITHER_COOKIES_NOR_CACHE; 1114 CookieOrCacheDeletionChoice choice = NEITHER_COOKIES_NOR_CACHE;
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 waiting_for_clear_offline_page_data_ = false; 1492 waiting_for_clear_offline_page_data_ = false;
1493 NotifyIfDone(); 1493 NotifyIfDone();
1494 } 1494 }
1495 #endif 1495 #endif
1496 1496
1497 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { 1497 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() {
1498 DCHECK_CURRENTLY_ON(BrowserThread::UI); 1498 DCHECK_CURRENTLY_ON(BrowserThread::UI);
1499 waiting_for_clear_domain_reliability_monitor_ = false; 1499 waiting_for_clear_domain_reliability_monitor_ = false;
1500 NotifyIfDone(); 1500 NotifyIfDone();
1501 } 1501 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698