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

Side by Side Diff: chrome/browser/chromeos/policy/user_network_configuration_updater_factory.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/chromeos/login/user.h" 9 #include "chrome/browser/chromeos/login/user.h"
10 #include "chrome/browser/chromeos/login/user_manager.h" 10 #include "chrome/browser/chromeos/login/user_manager.h"
11 #include "chrome/browser/chromeos/policy/user_network_configuration_updater.h" 11 #include "chrome/browser/chromeos/policy/user_network_configuration_updater.h"
12 #include "chrome/browser/chromeos/profiles/profile_helper.h" 12 #include "chrome/browser/chromeos/profiles/profile_helper.h"
13 #include "chrome/browser/policy/browser_policy_connector.h" 13 #include "chrome/browser/policy/browser_policy_connector.h"
14 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
15 #include "chrome/browser/policy/profile_policy_connector.h" 14 #include "chrome/browser/policy/profile_policy_connector.h"
16 #include "chrome/browser/policy/profile_policy_connector_factory.h" 15 #include "chrome/browser/policy/profile_policy_connector_factory.h"
17 #include "chrome/browser/profiles/incognito_helpers.h" 16 #include "chrome/browser/profiles/incognito_helpers.h"
18 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
20 #include "chromeos/network/network_handler.h" 19 #include "chromeos/network/network_handler.h"
21 #include "chromeos/network/onc/onc_certificate_importer_impl.h" 20 #include "chromeos/network/onc/onc_certificate_importer_impl.h"
22 #include "components/browser_context_keyed_service/browser_context_dependency_ma nager.h" 21 #include "components/browser_context_keyed_service/browser_context_dependency_ma nager.h"
22 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
23 23
24 namespace policy { 24 namespace policy {
25 25
26 // static 26 // static
27 UserNetworkConfigurationUpdater* 27 UserNetworkConfigurationUpdater*
28 UserNetworkConfigurationUpdaterFactory::GetForProfile(Profile* profile) { 28 UserNetworkConfigurationUpdaterFactory::GetForProfile(Profile* profile) {
29 return static_cast<UserNetworkConfigurationUpdater*>( 29 return static_cast<UserNetworkConfigurationUpdater*>(
30 GetInstance()->GetServiceForBrowserContext(profile, true)); 30 GetInstance()->GetServiceForBrowserContext(profile, true));
31 } 31 }
32 32
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 allow_trusted_certs_from_policy, 94 allow_trusted_certs_from_policy,
95 *user, 95 *user,
96 scoped_ptr<chromeos::onc::CertificateImporter>( 96 scoped_ptr<chromeos::onc::CertificateImporter>(
97 new chromeos::onc::CertificateImporterImpl), 97 new chromeos::onc::CertificateImporterImpl),
98 profile_connector->policy_service(), 98 profile_connector->policy_service(),
99 chromeos::NetworkHandler::Get()->managed_network_configuration_handler()) 99 chromeos::NetworkHandler::Get()->managed_network_configuration_handler())
100 .release(); 100 .release();
101 } 101 }
102 102
103 } // namespace policy 103 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698