OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "components/proxy_config/pref_proxy_config_tracker_impl.h" | 5 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/location.h" | 10 #include "base/location.h" |
9 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
10 #include "base/prefs/pref_registry_simple.h" | 12 #include "base/prefs/pref_registry_simple.h" |
11 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
12 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
13 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
14 #include "base/values.h" | 16 #include "base/values.h" |
15 #include "components/pref_registry/pref_registry_syncable.h" | 17 #include "components/pref_registry/pref_registry_syncable.h" |
16 #include "components/proxy_config/proxy_config_dictionary.h" | 18 #include "components/proxy_config/proxy_config_dictionary.h" |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 (config_state_ != ProxyPrefs::CONFIG_UNSET && | 426 (config_state_ != ProxyPrefs::CONFIG_UNSET && |
425 !pref_config_.Equals(new_config))) { | 427 !pref_config_.Equals(new_config))) { |
426 config_state_ = config_state; | 428 config_state_ = config_state; |
427 if (config_state_ != ProxyPrefs::CONFIG_UNSET) | 429 if (config_state_ != ProxyPrefs::CONFIG_UNSET) |
428 pref_config_ = new_config; | 430 pref_config_ = new_config; |
429 update_pending_ = true; | 431 update_pending_ = true; |
430 } | 432 } |
431 if (update_pending_) | 433 if (update_pending_) |
432 OnProxyConfigChanged(config_state, new_config); | 434 OnProxyConfigChanged(config_state, new_config); |
433 } | 435 } |
OLD | NEW |