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

Unified Diff: chrome/browser/chromeos/drive/drive_integration_service.cc

Issue 2416763002: Replace FOR_EACH_OBSERVER in c/b/chromeos with range-based for (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
Index: chrome/browser/chromeos/drive/drive_integration_service.cc
diff --git a/chrome/browser/chromeos/drive/drive_integration_service.cc b/chrome/browser/chromeos/drive/drive_integration_service.cc
index be83492bcacfe385c3c10d6815a7e116a253a9e1..73e2e85efe35b2947cb70fd9b3877227373da7ee 100644
--- a/chrome/browser/chromeos/drive/drive_integration_service.cc
+++ b/chrome/browser/chromeos/drive/drive_integration_service.cc
@@ -465,8 +465,8 @@ void DriveIntegrationService::AddDriveMountPoint() {
if (success) {
logger_->Log(logging::LOG_INFO, "Drive mount point is added");
- FOR_EACH_OBSERVER(DriveIntegrationServiceObserver, observers_,
- OnFileSystemMounted());
+ for (auto& observer : observers_)
+ observer.OnFileSystemMounted();
}
}
@@ -476,8 +476,8 @@ void DriveIntegrationService::RemoveDriveMountPoint() {
if (!mount_point_name_.empty()) {
job_list()->CancelAllJobs();
- FOR_EACH_OBSERVER(DriveIntegrationServiceObserver, observers_,
- OnFileSystemBeingUnmounted());
+ for (auto& observer : observers_)
+ observer.OnFileSystemBeingUnmounted();
storage::ExternalMountPoints* const mount_points =
storage::ExternalMountPoints::GetSystemInstance();
« no previous file with comments | « chrome/browser/chromeos/device/input_service_proxy.cc ('k') | chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698