OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/supervised_user/legacy/supervised_user_registration_uti
lity.h" | 5 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti
lity.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
update.h" | 25 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
update.h" |
26 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 26 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
27 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" | 27 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" |
28 #include "chrome/browser/supervised_user/supervised_user_constants.h" | 28 #include "chrome/browser/supervised_user/supervised_user_constants.h" |
29 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
31 #include "components/prefs/pref_service.h" | 31 #include "components/prefs/pref_service.h" |
32 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 32 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
33 #include "components/signin/core/browser/signin_client.h" | 33 #include "components/signin/core/browser/signin_client.h" |
34 #include "components/signin/core/browser/signin_manager.h" | 34 #include "components/signin/core/browser/signin_manager.h" |
| 35 #include "components/sync/base/get_session_name.h" |
35 #include "content/public/browser/browser_thread.h" | 36 #include "content/public/browser/browser_thread.h" |
36 #include "google_apis/gaia/gaia_urls.h" | 37 #include "google_apis/gaia/gaia_urls.h" |
37 #include "google_apis/gaia/google_service_auth_error.h" | 38 #include "google_apis/gaia/google_service_auth_error.h" |
38 #include "sync/util/get_session_name.h" | |
39 | 39 |
40 using base::DictionaryValue; | 40 using base::DictionaryValue; |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 SupervisedUserRegistrationUtility* g_instance_for_tests = NULL; | 44 SupervisedUserRegistrationUtility* g_instance_for_tests = NULL; |
45 | 45 |
46 // Actual implementation of SupervisedUserRegistrationUtility. | 46 // Actual implementation of SupervisedUserRegistrationUtility. |
47 class SupervisedUserRegistrationUtilityImpl | 47 class SupervisedUserRegistrationUtilityImpl |
48 : public SupervisedUserRegistrationUtility, | 48 : public SupervisedUserRegistrationUtility, |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 pending_supervised_user_id_); | 407 pending_supervised_user_id_); |
408 } | 408 } |
409 } | 409 } |
410 | 410 |
411 if (run_callback) | 411 if (run_callback) |
412 callback_.Run(error, pending_supervised_user_token_); | 412 callback_.Run(error, pending_supervised_user_token_); |
413 callback_.Reset(); | 413 callback_.Reset(); |
414 } | 414 } |
415 | 415 |
416 } // namespace | 416 } // namespace |
OLD | NEW |