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