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

Unified Diff: session_manager_service.cc

Issue 6820024: [login_manager] Fix race condition that caused ownership to never work (Closed) Base URL: http://git.chromium.org/git/login_manager.git@master
Patch Set: comment update Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nss_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: session_manager_service.cc
diff --git a/session_manager_service.cc b/session_manager_service.cc
index e02b5f5c650af838e7149bfd8711337a7e5b70c8..8f5ca0a43fe0c8c5c06449db6b326eaf96e49e5e 100644
--- a/session_manager_service.cc
+++ b/session_manager_service.cc
@@ -1139,6 +1139,8 @@ gboolean SessionManagerService::CurrentUserIsOwner() {
gboolean SessionManagerService::CurrentUserHasOwnerKey(
const std::vector<uint8>& pub_key,
GError** error) {
+ if (!nss_->MightHaveKeys())
+ return FALSE;
if (!nss_->OpenUserDB()) {
const char msg[] = "Could not open the current user's NSS database.";
LOG(ERROR) << msg;
« no previous file with comments | « nss_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698