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/chromeos/login/signin/auth_sync_observer.h" | 5 #include "chrome/browser/chromeos/login/signin/auth_sync_observer.h" |
6 | 6 |
7 #include "base/metrics/user_metrics.h" | 7 #include "base/metrics/user_metrics.h" |
8 #include "base/metrics/user_metrics_action.h" | 8 #include "base/metrics/user_metrics_action.h" |
9 #include "chrome/browser/chromeos/login/reauth_stats.h" | 9 #include "chrome/browser/chromeos/login/reauth_stats.h" |
10 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 10 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
11 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" | 11 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
12 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 12 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
13 #include "chrome/browser/sync/profile_sync_service_factory.h" | 13 #include "chrome/browser/sync/profile_sync_service_factory.h" |
14 #include "components/browser_sync/browser/profile_sync_service.h" | 14 #include "components/browser_sync/profile_sync_service.h" |
15 #include "components/prefs/pref_service.h" | 15 #include "components/prefs/pref_service.h" |
16 #include "components/user_manager/user_manager.h" | 16 #include "components/user_manager/user_manager.h" |
17 #include "components/user_manager/user_type.h" | 17 #include "components/user_manager/user_type.h" |
18 #include "content/public/browser/user_metrics.h" | 18 #include "content/public/browser/user_metrics.h" |
19 #include "google_apis/gaia/gaia_auth_util.h" | 19 #include "google_apis/gaia/gaia_auth_util.h" |
20 | 20 |
21 class Profile; | 21 class Profile; |
22 class ProfileSyncService; | 22 class ProfileSyncService; |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 } | 96 } |
97 } | 97 } |
98 | 98 |
99 void AuthSyncObserver::OnSupervisedTokenLoaded(const std::string& token) { | 99 void AuthSyncObserver::OnSupervisedTokenLoaded(const std::string& token) { |
100 ChromeUserManager::Get()->GetSupervisedUserManager()->ConfigureSyncWithToken( | 100 ChromeUserManager::Get()->GetSupervisedUserManager()->ConfigureSyncWithToken( |
101 profile_, token); | 101 profile_, token); |
102 } | 102 } |
103 | 103 |
104 } // namespace chromeos | 104 } // namespace chromeos |
OLD | NEW |