Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / password_manager / password_manager_util_win.h
blob09d94288e3174327ec8258a1179f4bce496fc777
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_WIN_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_WIN_H_
8 #include "ui/gfx/native_widget_types.h"
10 namespace password_manager_util_win {
12 // Attempts to (re-)authenticate the user of the OS account. Returns true if
13 // the user was successfully authenticated, or if authentication was not
14 // possible.
15 bool AuthenticateUser(gfx::NativeWindow window);
17 // Query the system to determine whether the current logged on user has a
18 // password set on their OS account, and log the result with UMA. It should be
19 // called on UI thread. The query is executed with a time delay to avoid calling
20 // a few Windows APIs on startup.
21 void DelayReportOsPassword();
23 } // namespace password_manager_util_win
25 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_WIN_H_