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

Unified Diff: chrome/browser/signin/local_auth.cc

Issue 548393002: Enable lock even when no password hash is present. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remote AuthCredsExist check Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/signin/local_auth.cc
diff --git a/chrome/browser/signin/local_auth.cc b/chrome/browser/signin/local_auth.cc
index 14bf511dbca8937c73328ad6f8bc115992ce4911..7748898f8e7a2c08decd9f033792208cb5f62c9c 100644
--- a/chrome/browser/signin/local_auth.cc
+++ b/chrome/browser/signin/local_auth.cc
@@ -198,23 +198,4 @@ bool ValidateLocalAuthCredentials(const Profile* profile,
password);
}
-bool LocalAuthCredentialsExist(size_t profile_info_index) {
- if (profile_info_index == std::string::npos) {
- NOTREACHED();
- return false;
- }
-
- ProfileInfoCache& info =
- g_browser_process->profile_manager()->GetProfileInfoCache();
-
- std::string encodedhash =
- info.GetLocalAuthCredentialsOfProfileAtIndex(profile_info_index);
-
- return !encodedhash.empty();
-}
-
-bool LocalAuthCredentialsExist(const Profile* profile) {
- return LocalAuthCredentialsExist(GetProfileInfoIndexOfProfile(profile));
-}
-
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698