| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 if (IsLoggedInAsUserWithGaiaAccount()) | 472 if (IsLoggedInAsUserWithGaiaAccount()) |
| 473 ManagerPasswordServiceFactory::GetForProfile(profile); | 473 ManagerPasswordServiceFactory::GetForProfile(profile); |
| 474 | 474 |
| 475 if (!profile->IsOffTheRecord()) { | 475 if (!profile->IsOffTheRecord()) { |
| 476 AuthSyncObserver* sync_observer = | 476 AuthSyncObserver* sync_observer = |
| 477 AuthSyncObserverFactory::GetInstance()->GetForProfile(profile); | 477 AuthSyncObserverFactory::GetInstance()->GetForProfile(profile); |
| 478 sync_observer->StartObserving(); | 478 sync_observer->StartObserving(); |
| 479 multi_profile_user_controller_->StartObserving(profile); | 479 multi_profile_user_controller_->StartObserving(profile); |
| 480 } | 480 } |
| 481 } | 481 } |
| 482 system::UpdateSystemTimezone(profile); |
| 482 UpdateUserTimeZoneRefresher(profile); | 483 UpdateUserTimeZoneRefresher(profile); |
| 483 break; | 484 break; |
| 484 } | 485 } |
| 485 case chrome::NOTIFICATION_PROFILE_CREATED: { | 486 case chrome::NOTIFICATION_PROFILE_CREATED: { |
| 486 Profile* profile = content::Source<Profile>(source).ptr(); | 487 Profile* profile = content::Source<Profile>(source).ptr(); |
| 487 user_manager::User* user = | 488 user_manager::User* user = |
| 488 ProfileHelper::Get()->GetUserByProfile(profile); | 489 ProfileHelper::Get()->GetUserByProfile(profile); |
| 489 if (user != NULL) { | 490 if (user != NULL) { |
| 490 user->set_profile_is_created(); | 491 user->set_profile_is_created(); |
| 491 | 492 |
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 break; | 1381 break; |
| 1381 default: | 1382 default: |
| 1382 NOTREACHED(); | 1383 NOTREACHED(); |
| 1383 break; | 1384 break; |
| 1384 } | 1385 } |
| 1385 | 1386 |
| 1386 return user; | 1387 return user; |
| 1387 } | 1388 } |
| 1388 | 1389 |
| 1389 } // namespace chromeos | 1390 } // namespace chromeos |
| OLD | NEW |