Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc

Issue 2849823003: ChromeOS: implement per-user time zone preferences. (Closed)
Patch Set: Update after review. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 break; 1389 break;
1389 default: 1390 default:
1390 NOTREACHED(); 1391 NOTREACHED();
1391 break; 1392 break;
1392 } 1393 }
1393 1394
1394 return user; 1395 return user;
1395 } 1396 }
1396 1397
1397 } // namespace chromeos 1398 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698