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

Unified Diff: chrome/browser/password_manager/password_manager_util.h

Issue 1134343002: [Password Manager] Fix IsEnabledSmartLockBranding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@400674_486739_return_values_IsPasswordSyncEnabled
Patch Set: Comments addressed Created 5 years, 7 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/password_manager/password_manager_util.h
diff --git a/chrome/browser/password_manager/password_manager_util.h b/chrome/browser/password_manager/password_manager_util.h
index 6556269b87c48d39bc4ad400ca82e8d37aa13358..e01ac228f2cba7e4b8ecd48c441e91b229495d25 100644
--- a/chrome/browser/password_manager/password_manager_util.h
+++ b/chrome/browser/password_manager/password_manager_util.h
@@ -7,8 +7,11 @@
#include "base/basictypes.h"
#include "base/callback.h"
+#include "components/password_manager/core/browser/password_manager_client.h"
#include "ui/gfx/native_widget_types.h"
+class ProfileSyncService;
+
namespace password_manager_util {
enum OsPasswordStatus {
@@ -34,6 +37,11 @@ bool AuthenticateUser(gfx::NativeWindow window);
// is invoked on UI thread with result.
void GetOsPasswordStatus(const base::Callback<void(OsPasswordStatus)>& reply);
+// Reports whether and how passwords are currently synced. In particular, for a
+// null |sync_service| returns NOT_SYNCING_PASSWORDS.
+password_manager::PasswordSyncState GetPasswordSyncState(
+ const ProfileSyncService* sync_service);
+
} // namespace password_manager_util
#endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698