| 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/users/chrome_user_manager_impl.h" | 5 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cstddef> | 9 #include <cstddef> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 if (IsLoggedInAsUserWithGaiaAccount()) | 491 if (IsLoggedInAsUserWithGaiaAccount()) |
| 492 ManagerPasswordServiceFactory::GetForProfile(profile); | 492 ManagerPasswordServiceFactory::GetForProfile(profile); |
| 493 | 493 |
| 494 if (!profile->IsOffTheRecord()) { | 494 if (!profile->IsOffTheRecord()) { |
| 495 AuthSyncObserver* sync_observer = | 495 AuthSyncObserver* sync_observer = |
| 496 AuthSyncObserverFactory::GetInstance()->GetForProfile(profile); | 496 AuthSyncObserverFactory::GetInstance()->GetForProfile(profile); |
| 497 sync_observer->StartObserving(); | 497 sync_observer->StartObserving(); |
| 498 multi_profile_user_controller_->StartObserving(profile); | 498 multi_profile_user_controller_->StartObserving(profile); |
| 499 } | 499 } |
| 500 } | 500 } |
| 501 system::UpdateSystemTimezone(profile); |
| 501 UpdateUserTimeZoneRefresher(profile); | 502 UpdateUserTimeZoneRefresher(profile); |
| 502 break; | 503 break; |
| 503 } | 504 } |
| 504 case chrome::NOTIFICATION_PROFILE_CREATED: { | 505 case chrome::NOTIFICATION_PROFILE_CREATED: { |
| 505 Profile* profile = content::Source<Profile>(source).ptr(); | 506 Profile* profile = content::Source<Profile>(source).ptr(); |
| 506 user_manager::User* user = | 507 user_manager::User* user = |
| 507 ProfileHelper::Get()->GetUserByProfile(profile); | 508 ProfileHelper::Get()->GetUserByProfile(profile); |
| 508 if (user != NULL) { | 509 if (user != NULL) { |
| 509 user->set_profile_is_created(); | 510 user->set_profile_is_created(); |
| 510 | 511 |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1395 break; | 1396 break; |
| 1396 default: | 1397 default: |
| 1397 NOTREACHED(); | 1398 NOTREACHED(); |
| 1398 break; | 1399 break; |
| 1399 } | 1400 } |
| 1400 | 1401 |
| 1401 return user; | 1402 return user; |
| 1402 } | 1403 } |
| 1403 | 1404 |
| 1404 } // namespace chromeos | 1405 } // namespace chromeos |
| OLD | NEW |