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/policy/cloud/cloud_policy_client_registration_helper.h" | 5 #include "chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/time.h" | 10 #include "base/time/time.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "google_apis/gaia/gaia_constants.h" | 12 #include "google_apis/gaia/gaia_constants.h" |
13 #include "google_apis/gaia/gaia_urls.h" | 13 #include "google_apis/gaia/gaia_urls.h" |
14 #include "google_apis/gaia/google_service_auth_error.h" | 14 #include "google_apis/gaia/google_service_auth_error.h" |
15 #include "google_apis/gaia/oauth2_access_token_fetcher.h" | 15 #include "google_apis/gaia/oauth2_access_token_fetcher.h" |
16 | 16 |
17 namespace policy { | 17 namespace policy { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void CloudPolicyClientRegistrationHelper::RequestCompleted() { | 158 void CloudPolicyClientRegistrationHelper::RequestCompleted() { |
159 if (client_) { | 159 if (client_) { |
160 client_->RemoveObserver(this); | 160 client_->RemoveObserver(this); |
161 // |client_| may be freed by the callback so clear it now. | 161 // |client_| may be freed by the callback so clear it now. |
162 client_ = NULL; | 162 client_ = NULL; |
163 callback_.Run(); | 163 callback_.Run(); |
164 } | 164 } |
165 } | 165 } |
166 | 166 |
167 } // namespace policy | 167 } // namespace policy |
OLD | NEW |