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

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: Rebase 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 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 void UserManagerImpl::NotifyOnLogin() { 1110 void UserManagerImpl::NotifyOnLogin() {
1111 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1111 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1112 NotifyActiveUserHashChanged(active_user_->username_hash()); 1112 NotifyActiveUserHashChanged(active_user_->username_hash());
1113 1113
1114 UpdateLoginState(); 1114 UpdateLoginState();
1115 content::NotificationService::current()->Notify( 1115 content::NotificationService::current()->Notify(
1116 chrome::NOTIFICATION_LOGIN_USER_CHANGED, 1116 chrome::NOTIFICATION_LOGIN_USER_CHANGED,
1117 content::Source<UserManager>(this), 1117 content::Source<UserManager>(this),
1118 content::Details<const User>(active_user_)); 1118 content::Details<const User>(active_user_));
1119 1119
1120 CrosLibrary::Get()->GetCertLibrary()->LoadKeyStore();
1121
1122 // Indicate to DeviceSettingsService that the owner key may have become 1120 // Indicate to DeviceSettingsService that the owner key may have become
1123 // available. 1121 // available.
1124 DeviceSettingsService::Get()->SetUsername(active_user_->email()); 1122 DeviceSettingsService::Get()->SetUsername(active_user_->email());
1125 } 1123 }
1126 1124
1127 void UserManagerImpl::UpdateOwnership( 1125 void UserManagerImpl::UpdateOwnership(
1128 DeviceSettingsService::OwnershipStatus status, 1126 DeviceSettingsService::OwnershipStatus status,
1129 bool is_owner) { 1127 bool is_owner) {
1130 VLOG(1) << "Current user " << (is_owner ? "is owner" : "is not owner"); 1128 VLOG(1) << "Current user " << (is_owner ? "is owner" : "is not owner");
1131 1129
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 case DEVICE_LOCAL_ACCOUNT_TYPE_KIOSK_APP: 1484 case DEVICE_LOCAL_ACCOUNT_TYPE_KIOSK_APP:
1487 // TODO(mnissler, nkostylev, bartfab): Process Kiosk Apps within the 1485 // TODO(mnissler, nkostylev, bartfab): Process Kiosk Apps within the
1488 // standard login framework: http://crbug.com/234694 1486 // standard login framework: http://crbug.com/234694
1489 break; 1487 break;
1490 } 1488 }
1491 } 1489 }
1492 } 1490 }
1493 } 1491 }
1494 1492
1495 } // namespace chromeos 1493 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698