| 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 "chrome/browser/chromeos/proxy_config_service_impl.h" | 5 #include "chrome/browser/chromeos/proxy_config_service_impl.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/json/json_value_serializer.h" | 10 #include "base/json/json_string_value_serializer.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "chrome/browser/chromeos/cros/cros_library.h" | 13 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 14 #include "chrome/browser/chromeos/cros/onc_constants.h" | 14 #include "chrome/browser/chromeos/cros/onc_constants.h" |
| 15 #include "chrome/browser/chromeos/cros_settings.h" | 15 #include "chrome/browser/chromeos/cros_settings.h" |
| 16 #include "chrome/browser/chromeos/cros_settings_names.h" | 16 #include "chrome/browser/chromeos/cros_settings_names.h" |
| 17 #include "chrome/browser/chromeos/login/user_manager.h" | 17 #include "chrome/browser/chromeos/login/user_manager.h" |
| 18 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" | 18 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
| 19 #include "chrome/browser/prefs/pref_service.h" | 19 #include "chrome/browser/prefs/pref_service.h" |
| 20 #include "chrome/browser/prefs/proxy_config_dictionary.h" | 20 #include "chrome/browser/prefs/proxy_config_dictionary.h" |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 device_config_.clear(); | 836 device_config_.clear(); |
| 837 return; | 837 return; |
| 838 } | 838 } |
| 839 if (!active_network_.empty()) { | 839 if (!active_network_.empty()) { |
| 840 VLOG(1) << this << ": try migrating device config to " << active_network_; | 840 VLOG(1) << this << ": try migrating device config to " << active_network_; |
| 841 SetProxyConfigForNetwork(active_network_, device_config_, true); | 841 SetProxyConfigForNetwork(active_network_, device_config_, true); |
| 842 } | 842 } |
| 843 } | 843 } |
| 844 | 844 |
| 845 } // namespace chromeos | 845 } // namespace chromeos |
| OLD | NEW |