| Index: components/policy/core/common/cloud/cloud_policy_client_registration_helper.h
|
| diff --git a/chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.h
|
| similarity index 86%
|
| rename from chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h
|
| rename to components/policy/core/common/cloud/cloud_policy_client_registration_helper.h
|
| index 8e0afe0cbdd5c7994093460e9f0c7a34089144ee..f1f2dc793779293bec1632669d53d505583d5904 100644
|
| --- a/chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h
|
| +++ b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HELPER_H_
|
| -#define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HELPER_H_
|
| +#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HELPER_H_
|
| +#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HELPER_H_
|
|
|
| #include <string>
|
|
|
| @@ -11,9 +11,10 @@
|
| #include "base/callback.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "chrome/browser/policy/cloud/cloud_policy_client.h"
|
| -#include "chrome/browser/policy/cloud/user_info_fetcher.h"
|
| #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
|
| +#include "components/policy/core/common/cloud/cloud_policy_client.h"
|
| +#include "components/policy/core/common/cloud/user_info_fetcher.h"
|
| +#include "components/policy/policy_export.h"
|
|
|
| class OAuth2TokenService;
|
|
|
| @@ -26,8 +27,9 @@ namespace policy {
|
| // Helper class that registers a CloudPolicyClient. It fetches an OAuth2 token
|
| // for the DM service if needed, and checks with Gaia if the account has policy
|
| // management enabled.
|
| -class CloudPolicyClientRegistrationHelper : public UserInfoFetcher::Delegate,
|
| - public CloudPolicyClient::Observer {
|
| +class POLICY_EXPORT CloudPolicyClientRegistrationHelper
|
| + : public UserInfoFetcher::Delegate,
|
| + public CloudPolicyClient::Observer {
|
| public:
|
| // |context| and |client| are not owned and must outlive this object.
|
| // If |should_force_load_policy| then the cloud policy registration is
|
| @@ -110,4 +112,4 @@ class CloudPolicyClientRegistrationHelper : public UserInfoFetcher::Delegate,
|
|
|
| } // namespace policy
|
|
|
| -#endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HELPER_H_
|
| +#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HELPER_H_
|
|
|