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/login/policy_oauth_fetcher.h" | 5 #include "chrome/browser/chromeos/login/policy_oauth_fetcher.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" |
9 #include "chrome/browser/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
10 #include "chrome/browser/policy/user_cloud_policy_manager_chromeos.h" | |
11 #include "google_apis/gaia/gaia_constants.h" | 11 #include "google_apis/gaia/gaia_constants.h" |
12 #include "google_apis/gaia/google_service_auth_error.h" | 12 #include "google_apis/gaia/google_service_auth_error.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 namespace { | 16 namespace { |
17 const char kServiceScopeChromeOSDeviceManagement[] = | 17 const char kServiceScopeChromeOSDeviceManagement[] = |
18 "https://www.googleapis.com/auth/chromeosdevicemanagement"; | 18 "https://www.googleapis.com/auth/chromeosdevicemanagement"; |
19 } // namespace | 19 } // namespace |
20 | 20 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 browser_policy_connector->GetUserCloudPolicyManager(); | 102 browser_policy_connector->GetUserCloudPolicyManager(); |
103 if (cloud_policy_manager) { | 103 if (cloud_policy_manager) { |
104 if (token.empty()) | 104 if (token.empty()) |
105 cloud_policy_manager->CancelWaitForPolicyFetch(); | 105 cloud_policy_manager->CancelWaitForPolicyFetch(); |
106 else | 106 else |
107 cloud_policy_manager->RegisterClient(token); | 107 cloud_policy_manager->RegisterClient(token); |
108 } | 108 } |
109 } | 109 } |
110 | 110 |
111 } // namespace chromeos | 111 } // namespace chromeos |
OLD | NEW |