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

Unified Diff: chrome/browser/browsing_data_local_storage_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_local_storage_helper.cc
diff --git a/chrome/browser/browsing_data_local_storage_helper.cc b/chrome/browser/browsing_data_local_storage_helper.cc
index a732cf9c2766e3a19fd0b286dc060bbdef103a57..243eec22cace1b5ef251701466bb2cdb897d28c9 100644
--- a/chrome/browser/browsing_data_local_storage_helper.cc
+++ b/chrome/browser/browsing_data_local_storage_helper.cc
@@ -56,7 +56,7 @@ BrowsingDataLocalStorageHelper::~BrowsingDataLocalStorageHelper() {
}
void BrowsingDataLocalStorageHelper::StartFetching(
- Callback1<const std::vector<LocalStorageInfo>& >::Type* callback) {
+ Callback1<const std::list<LocalStorageInfo>& >::Type* callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!is_fetching_);
DCHECK(callback);
@@ -181,7 +181,7 @@ bool CannedBrowsingDataLocalStorageHelper::empty() const {
}
void CannedBrowsingDataLocalStorageHelper::StartFetching(
- Callback1<const std::vector<LocalStorageInfo>& >::Type* callback) {
+ Callback1<const std::list<LocalStorageInfo>& >::Type* callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!is_fetching_);
DCHECK(callback);
@@ -207,7 +207,7 @@ void CannedBrowsingDataLocalStorageHelper::ConvertPendingInfoInWebKitThread() {
std::string security_origin(web_security_origin.toString().utf8());
bool duplicate = false;
- for (std::vector<LocalStorageInfo>::iterator
+ for (std::list<LocalStorageInfo>::iterator
local_storage = local_storage_info_.begin();
local_storage != local_storage_info_.end(); ++local_storage) {
if (local_storage->origin == security_origin) {
« no previous file with comments | « chrome/browser/browsing_data_local_storage_helper.h ('k') | chrome/browser/browsing_data_local_storage_helper_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698