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

Unified Diff: storage/browser/database/database_tracker.cc

Issue 2422843002: Remove usage of FOR_EACH_OBSERVER macro in storage (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | storage/browser/quota/special_storage_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/database/database_tracker.cc
diff --git a/storage/browser/database/database_tracker.cc b/storage/browser/database/database_tracker.cc
index 42041c7869a5b2a21f21726fe85f9c1d39c663d4..1539b0cd64327d54474b7ebf4c6a2f43530d47d0 100644
--- a/storage/browser/database/database_tracker.cc
+++ b/storage/browser/database/database_tracker.cc
@@ -614,8 +614,8 @@ int64_t DatabaseTracker::UpdateOpenDatabaseInfoAndNotify(
storage::GetOriginFromIdentifier(origin_id),
storage::kStorageTypeTemporary,
new_size - old_size);
- FOR_EACH_OBSERVER(Observer, observers_, OnDatabaseSizeChanged(
- origin_id, name, new_size));
+ for (auto& observer : observers_)
+ observer.OnDatabaseSizeChanged(origin_id, name, new_size);
}
return new_size;
}
@@ -626,8 +626,8 @@ void DatabaseTracker::ScheduleDatabaseForDeletion(
DCHECK(database_connections_.IsDatabaseOpened(origin_identifier,
database_name));
dbs_to_be_deleted_[origin_identifier].insert(database_name);
- FOR_EACH_OBSERVER(Observer, observers_, OnDatabaseScheduledForDeletion(
- origin_identifier, database_name));
+ for (auto& observer : observers_)
+ observer.OnDatabaseScheduledForDeletion(origin_identifier, database_name);
}
void DatabaseTracker::ScheduleDatabasesForDeletion(
« no previous file with comments | « no previous file | storage/browser/quota/special_storage_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698