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

Side by Side Diff: chrome/browser/chromeos/login/user_manager.cc

Issue 7850003: Fixed sync re-activation when the device comes online after offline login. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/user_manager.h" 5 #include "chrome/browser/chromeos/login/user_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 Details<const User>(&user)); 594 Details<const User>(&user));
595 } 595 }
596 596
597 bool UserManager::IsLoggedInAsGuest() const { 597 bool UserManager::IsLoggedInAsGuest() const {
598 return logged_in_user().email() == kGuestUser; 598 return logged_in_user().email() == kGuestUser;
599 } 599 }
600 600
601 // Private constructor and destructor. Do nothing. 601 // Private constructor and destructor. Do nothing.
602 UserManager::UserManager() 602 UserManager::UserManager()
603 : ALLOW_THIS_IN_INITIALIZER_LIST(image_loader_(new UserImageLoader(this))), 603 : ALLOW_THIS_IN_INITIALIZER_LIST(image_loader_(new UserImageLoader(this))),
604 offline_login_(false),
604 current_user_is_owner_(false), 605 current_user_is_owner_(false),
605 current_user_is_new_(false), 606 current_user_is_new_(false),
606 user_is_logged_in_(false) { 607 user_is_logged_in_(false) {
607 registrar_.Add(this, chrome::NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED, 608 registrar_.Add(this, chrome::NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED,
608 NotificationService::AllSources()); 609 NotificationService::AllSources());
609 } 610 }
610 611
611 UserManager::~UserManager() { 612 UserManager::~UserManager() {
612 image_loader_->set_delegate(NULL); 613 image_loader_->set_delegate(NULL);
613 } 614 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 } 710 }
710 711
711 void UserManager::NotifyLocalStateChanged() { 712 void UserManager::NotifyLocalStateChanged() {
712 FOR_EACH_OBSERVER( 713 FOR_EACH_OBSERVER(
713 Observer, 714 Observer,
714 observer_list_, 715 observer_list_,
715 LocalStateChanged(this)); 716 LocalStateChanged(this));
716 } 717 }
717 718
718 } // namespace chromeos 719 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698