OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/android_management_client.h" | 5 #include "chrome/browser/chromeos/policy/android_management_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "components/policy/core/common/cloud/device_management_service.h" | 11 #include "components/policy/core/common/cloud/device_management_service.h" |
| 12 #include "components/policy/proto/device_management_backend.pb.h" |
12 #include "google_apis/gaia/gaia_constants.h" | 13 #include "google_apis/gaia/gaia_constants.h" |
13 #include "google_apis/gaia/google_service_auth_error.h" | 14 #include "google_apis/gaia/google_service_auth_error.h" |
14 #include "policy/proto/device_management_backend.pb.h" | |
15 | 15 |
16 namespace em = enterprise_management; | 16 namespace em = enterprise_management; |
17 | 17 |
18 namespace policy { | 18 namespace policy { |
19 | 19 |
20 AndroidManagementClient::AndroidManagementClient( | 20 AndroidManagementClient::AndroidManagementClient( |
21 DeviceManagementService* device_management_service, | 21 DeviceManagementService* device_management_service, |
22 scoped_refptr<net::URLRequestContextGetter> request_context, | 22 scoped_refptr<net::URLRequestContextGetter> request_context, |
23 const std::string& account_id, | 23 const std::string& account_id, |
24 OAuth2TokenService* token_service) | 24 OAuth2TokenService* token_service) |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 default: | 107 default: |
108 result = RESULT_ERROR; | 108 result = RESULT_ERROR; |
109 } | 109 } |
110 | 110 |
111 request_job_.reset(); | 111 request_job_.reset(); |
112 callback_.Run(result); | 112 callback_.Run(result); |
113 callback_.Reset(); | 113 callback_.Reset(); |
114 } | 114 } |
115 | 115 |
116 } // namespace policy | 116 } // namespace policy |
OLD | NEW |