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

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

Issue 14522013: Separate cert loading code from CertLibrary and move to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback Created 7 years, 7 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_impl.h" 5 #include "chrome/browser/chromeos/login/user_manager_impl.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 void UserManagerImpl::NotifyOnLogin() { 1107 void UserManagerImpl::NotifyOnLogin() {
1108 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1108 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1109 NotifyActiveUserHashChanged(active_user_->username_hash()); 1109 NotifyActiveUserHashChanged(active_user_->username_hash());
1110 1110
1111 UpdateLoginState(); 1111 UpdateLoginState();
1112 content::NotificationService::current()->Notify( 1112 content::NotificationService::current()->Notify(
1113 chrome::NOTIFICATION_LOGIN_USER_CHANGED, 1113 chrome::NOTIFICATION_LOGIN_USER_CHANGED,
1114 content::Source<UserManager>(this), 1114 content::Source<UserManager>(this),
1115 content::Details<const User>(active_user_)); 1115 content::Details<const User>(active_user_));
1116 1116
1117 CrosLibrary::Get()->GetCertLibrary()->LoadKeyStore();
1118
1119 // Indicate to DeviceSettingsService that the owner key may have become 1117 // Indicate to DeviceSettingsService that the owner key may have become
1120 // available. 1118 // available.
1121 DeviceSettingsService::Get()->SetUsername(active_user_->email()); 1119 DeviceSettingsService::Get()->SetUsername(active_user_->email());
1122 } 1120 }
1123 1121
1124 void UserManagerImpl::UpdateOwnership( 1122 void UserManagerImpl::UpdateOwnership(
1125 DeviceSettingsService::OwnershipStatus status, 1123 DeviceSettingsService::OwnershipStatus status,
1126 bool is_owner) { 1124 bool is_owner) {
1127 VLOG(1) << "Current user " << (is_owner ? "is owner" : "is not owner"); 1125 VLOG(1) << "Current user " << (is_owner ? "is owner" : "is not owner");
1128 1126
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 case DEVICE_LOCAL_ACCOUNT_TYPE_KIOSK_APP: 1481 case DEVICE_LOCAL_ACCOUNT_TYPE_KIOSK_APP:
1484 // TODO(mnissler, nkostylev, bartfab): Process Kiosk Apps within the 1482 // TODO(mnissler, nkostylev, bartfab): Process Kiosk Apps within the
1485 // standard login framework: http://crbug.com/234694 1483 // standard login framework: http://crbug.com/234694
1486 break; 1484 break;
1487 } 1485 }
1488 } 1486 }
1489 } 1487 }
1490 } 1488 }
1491 1489
1492 } // namespace chromeos 1490 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698