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

Side by Side Diff: chrome/browser/password_manager/password_manager_util.h

Issue 34393007: [Win] Add option to reauthenticate the OS user before revealing passwords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@password
Patch Set: remove GetNativeWindow from OS_ANDROID Created 7 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
7 7
8 #include "base/basictypes.h"
9 #include "ui/gfx/native_widget_types.h"
10
8 namespace password_manager_util { 11 namespace password_manager_util {
9 12
10 // Attempts to (re-)authenticate the user of the OS account. Returns true if 13 // Attempts to (re-)authenticate the user of the OS account. Returns true if
11 // the user was successfully authenticated, or if authentication was not 14 // the user was successfully authenticated, or if authentication was not
12 // possible. On platforms where reauthentication is not possible or does not 15 // possible. On platforms where reauthentication is not possible or does not
13 // make sense, the default implementation always returns true. 16 // make sense, the default implementation always returns true.
14 bool AuthenticateUser(); 17 bool AuthenticateUser(gfx::NativeWindow window);
15 18
16 } // namespace password_manager_util 19 } // namespace password_manager_util
17 20
18 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ 21 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager.h ('k') | chrome/browser/password_manager/password_manager_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698