| OLD | NEW |
| 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 "net/proxy/proxy_config_service_mac.h" | 5 #include "net/proxy/proxy_config_service_mac.h" |
| 6 | 6 |
| 7 #include <CoreFoundation/CoreFoundation.h> | 7 #include <CoreFoundation/CoreFoundation.h> |
| 8 #include <SystemConfiguration/SystemConfiguration.h> | 8 #include <SystemConfiguration/SystemConfiguration.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 void ProxyConfigServiceMac::OnProxyConfigChanged( | 271 void ProxyConfigServiceMac::OnProxyConfigChanged( |
| 272 const ProxyConfig& new_config) { | 272 const ProxyConfig& new_config) { |
| 273 DCHECK(io_thread_task_runner_->BelongsToCurrentThread()); | 273 DCHECK(io_thread_task_runner_->BelongsToCurrentThread()); |
| 274 | 274 |
| 275 // Keep track of the last value we have seen. | 275 // Keep track of the last value we have seen. |
| 276 has_fetched_config_ = true; | 276 has_fetched_config_ = true; |
| 277 last_config_fetched_ = new_config; | 277 last_config_fetched_ = new_config; |
| 278 | 278 |
| 279 // Notify all the observers. | 279 // Notify all the observers. |
| 280 FOR_EACH_OBSERVER(Observer, observers_, | 280 for (auto& observer : observers_) |
| 281 OnProxyConfigChanged(new_config, CONFIG_VALID)); | 281 observer.OnProxyConfigChanged(new_config, CONFIG_VALID); |
| 282 } | 282 } |
| 283 | 283 |
| 284 } // namespace net | 284 } // namespace net |
| OLD | NEW |