| 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/chromeos/login/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 "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "chrome/browser/chromeos/login/supervised_user_manager.h" | 10 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
| 11 #include "chrome/browser/chromeos/login/user_manager.h" | 11 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 12 #include "chrome/browser/sync/profile_sync_service.h" | 12 #include "chrome/browser/sync/profile_sync_service.h" |
| 13 #include "chrome/browser/sync/profile_sync_service_factory.h" | 13 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
| 15 #include "content/public/browser/user_metrics.h" | 15 #include "content/public/browser/user_metrics.h" |
| 16 #include "google_apis/gaia/gaia_auth_util.h" | 16 #include "google_apis/gaia/gaia_auth_util.h" |
| 17 | 17 |
| 18 class Profile; | 18 class Profile; |
| 19 class ProfileSyncService; | 19 class ProfileSyncService; |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 | 90 |
| 91 void AuthSyncObserver::OnSupervisedTokenLoaded(const std::string& token) { | 91 void AuthSyncObserver::OnSupervisedTokenLoaded(const std::string& token) { |
| 92 UserManager::Get()->GetSupervisedUserManager()->ConfigureSyncWithToken( | 92 UserManager::Get()->GetSupervisedUserManager()->ConfigureSyncWithToken( |
| 93 profile_, token); | 93 profile_, token); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace chromeos | 96 } // namespace chromeos |
| OLD | NEW |