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

Unified Diff: chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc

Issue 2715823004: Add FingerprintUnlock KeyedService for each profile (Closed)
Patch Set: rebase Created 3 years, 10 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
Index: chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc b/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc
index 6b79bca373deab8122c48966a6ff7024130719fa..46a5becd94ae57a924c9f6462746084638a0fd25 100644
--- a/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc
+++ b/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.h"
#include "base/memory/ptr_util.h"
-#include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h"
-#include "chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h"
+#include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_factory.h"
+#include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_storage.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/common/pref_names.h"
#include "chromeos/login/auth/extended_authenticator.h"
@@ -49,9 +49,9 @@ const char* kMostCommonPins[] = {"1212", "1004", "2000", "6969",
QuickUnlockModeList ComputeActiveModes(Profile* profile) {
QuickUnlockModeList modes;
- chromeos::quick_unlock::PinStorage* pin_storage =
- chromeos::quick_unlock::PinStorageFactory::GetForProfile(profile);
- if (pin_storage && pin_storage->IsPinSet())
+ chromeos::quick_unlock::QuickUnlockStorage* quick_unlock_storage =
+ chromeos::quick_unlock::QuickUnlockFactory::GetForProfile(profile);
+ if (quick_unlock_storage && quick_unlock_storage->pin_storage()->IsPinSet())
modes.push_back(quick_unlock_private::QUICK_UNLOCK_MODE_PIN);
return modes;
@@ -400,14 +400,14 @@ void QuickUnlockPrivateSetModesFunction::ApplyModeChange() {
// Apply changes.
if (update_pin) {
Profile* profile = chrome_details_.GetProfile();
- chromeos::quick_unlock::PinStorage* pin_storage =
- chromeos::quick_unlock::PinStorageFactory::GetForProfile(profile);
+ chromeos::quick_unlock::QuickUnlockStorage* quick_unlock_storage =
+ chromeos::quick_unlock::QuickUnlockFactory::GetForProfile(profile);
if (pin_credential.empty()) {
- pin_storage->RemovePin();
+ quick_unlock_storage->pin_storage()->RemovePin();
} else {
- pin_storage->SetPin(pin_credential);
- pin_storage->MarkStrongAuth();
+ quick_unlock_storage->pin_storage()->SetPin(pin_credential);
+ quick_unlock_storage->MarkStrongAuth();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698