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" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/threading/sequenced_worker_pool.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
18 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 20 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
20 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 21 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
21 #include "chrome/browser/signin/signin_manager_factory.h" | 22 #include "chrome/browser/signin/signin_manager_factory.h" |
22 #include "chrome/browser/supervised_user/legacy/supervised_user_refresh_token_fe
tcher.h" | 23 #include "chrome/browser/supervised_user/legacy/supervised_user_refresh_token_fe
tcher.h" |
23 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" | 24 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" |
24 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service_factory.h" | 25 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service_factory.h" |
25 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
update.h" | 26 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
update.h" |
26 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 27 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 pending_supervised_user_id_); | 408 pending_supervised_user_id_); |
408 } | 409 } |
409 } | 410 } |
410 | 411 |
411 if (run_callback) | 412 if (run_callback) |
412 callback_.Run(error, pending_supervised_user_token_); | 413 callback_.Run(error, pending_supervised_user_token_); |
413 callback_.Reset(); | 414 callback_.Reset(); |
414 } | 415 } |
415 | 416 |
416 } // namespace | 417 } // namespace |
OLD | NEW |