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

Unified Diff: chrome/browser/browsing_data_database_helper.cc

Issue 7676002: When deleting storage through the cookies tree model, also update its cache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 4 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: chrome/browser/browsing_data_database_helper.cc
diff --git a/chrome/browser/browsing_data_database_helper.cc b/chrome/browser/browsing_data_database_helper.cc
index 437f5e9a41d4215b274f1d72c6c76393aa9ac694..b836a446f84d904bed9290631f0625ded3518646 100644
--- a/chrome/browser/browsing_data_database_helper.cc
+++ b/chrome/browser/browsing_data_database_helper.cc
@@ -56,7 +56,7 @@ BrowsingDataDatabaseHelper::~BrowsingDataDatabaseHelper() {
}
void BrowsingDataDatabaseHelper::StartFetching(
- Callback1<const std::vector<DatabaseInfo>& >::Type* callback) {
+ Callback1<const std::list<DatabaseInfo>& >::Type* callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!is_fetching_);
DCHECK(callback);
@@ -193,7 +193,7 @@ bool CannedBrowsingDataDatabaseHelper::empty() const {
}
void CannedBrowsingDataDatabaseHelper::StartFetching(
- Callback1<const std::vector<DatabaseInfo>& >::Type* callback) {
+ Callback1<const std::list<DatabaseInfo>& >::Type* callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!is_fetching_);
DCHECK(callback);
@@ -207,7 +207,7 @@ CannedBrowsingDataDatabaseHelper::~CannedBrowsingDataDatabaseHelper() {}
void CannedBrowsingDataDatabaseHelper::ConvertInfoInWebKitThread() {
base::AutoLock auto_lock(lock_);
- for (std::vector<PendingDatabaseInfo>::const_iterator
+ for (std::list<PendingDatabaseInfo>::const_iterator
info = pending_database_info_.begin();
info != pending_database_info_.end(); ++info) {
WebSecurityOrigin web_security_origin =
@@ -217,7 +217,7 @@ void CannedBrowsingDataDatabaseHelper::ConvertInfoInWebKitThread() {
web_security_origin.databaseIdentifier().utf8();
bool duplicate = false;
- for (std::vector<DatabaseInfo>::iterator database = database_info_.begin();
+ for (std::list<DatabaseInfo>::iterator database = database_info_.begin();
database != database_info_.end(); ++database) {
if (database->origin_identifier == origin_identifier &&
database->database_name == info->name) {
« no previous file with comments | « chrome/browser/browsing_data_database_helper.h ('k') | chrome/browser/browsing_data_database_helper_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698