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

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: Moved more code to previous CL. Created 3 years, 6 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 if (IsLoggedInAsUserWithGaiaAccount()) 477 if (IsLoggedInAsUserWithGaiaAccount())
478 ManagerPasswordServiceFactory::GetForProfile(profile); 478 ManagerPasswordServiceFactory::GetForProfile(profile);
479 479
480 if (!profile->IsOffTheRecord()) { 480 if (!profile->IsOffTheRecord()) {
481 AuthSyncObserver* sync_observer = 481 AuthSyncObserver* sync_observer =
482 AuthSyncObserverFactory::GetInstance()->GetForProfile(profile); 482 AuthSyncObserverFactory::GetInstance()->GetForProfile(profile);
483 sync_observer->StartObserving(); 483 sync_observer->StartObserving();
484 multi_profile_user_controller_->StartObserving(profile); 484 multi_profile_user_controller_->StartObserving(profile);
485 } 485 }
486 } 486 }
487 system::UpdateSystemTimezone(profile);
487 UpdateUserTimeZoneRefresher(profile); 488 UpdateUserTimeZoneRefresher(profile);
488 break; 489 break;
489 } 490 }
490 case chrome::NOTIFICATION_PROFILE_CREATED: { 491 case chrome::NOTIFICATION_PROFILE_CREATED: {
491 Profile* profile = content::Source<Profile>(source).ptr(); 492 Profile* profile = content::Source<Profile>(source).ptr();
492 user_manager::User* user = 493 user_manager::User* user =
493 ProfileHelper::Get()->GetUserByProfile(profile); 494 ProfileHelper::Get()->GetUserByProfile(profile);
494 if (user != NULL) { 495 if (user != NULL) {
495 user->set_profile_is_created(); 496 user->set_profile_is_created();
496 497
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 break; 1386 break;
1386 default: 1387 default:
1387 NOTREACHED(); 1388 NOTREACHED();
1388 break; 1389 break;
1389 } 1390 }
1390 1391
1391 return user; 1392 return user;
1392 } 1393 }
1393 1394
1394 } // namespace chromeos 1395 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698