| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/policy/user_network_configuration_updater_fact
ory.h" | 5 #include "chrome/browser/chromeos/policy/user_network_configuration_updater_fact
ory.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "chrome/browser/chromeos/policy/user_network_configuration_updater.h" | 8 #include "chrome/browser/chromeos/policy/user_network_configuration_updater.h" |
| 9 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 9 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 10 #include "chrome/browser/policy/profile_policy_connector.h" | 10 #include "chrome/browser/policy/profile_policy_connector.h" |
| 11 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 11 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
| 12 #include "chrome/browser/profiles/incognito_helpers.h" | 12 #include "chrome/browser/profiles/incognito_helpers.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/common/pref_names.h" | |
| 15 #include "chromeos/network/network_handler.h" | 14 #include "chromeos/network/network_handler.h" |
| 16 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 15 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 17 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 16 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 18 #include "components/user_manager/user.h" | 17 #include "components/user_manager/user.h" |
| 19 #include "components/user_manager/user_manager.h" | 18 #include "components/user_manager/user_manager.h" |
| 20 #include "components/user_manager/user_type.h" | 19 #include "components/user_manager/user_type.h" |
| 21 | 20 |
| 22 namespace policy { | 21 namespace policy { |
| 23 | 22 |
| 24 // static | 23 // static |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 return UserNetworkConfigurationUpdater::CreateForUserPolicy( | 82 return UserNetworkConfigurationUpdater::CreateForUserPolicy( |
| 84 profile, | 83 profile, |
| 85 allow_trusted_certs_from_policy, | 84 allow_trusted_certs_from_policy, |
| 86 *user, | 85 *user, |
| 87 profile_connector->policy_service(), | 86 profile_connector->policy_service(), |
| 88 chromeos::NetworkHandler::Get()->managed_network_configuration_handler()) | 87 chromeos::NetworkHandler::Get()->managed_network_configuration_handler()) |
| 89 .release(); | 88 .release(); |
| 90 } | 89 } |
| 91 | 90 |
| 92 } // namespace policy | 91 } // namespace policy |
| OLD | NEW |