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

Unified Diff: components/password_manager/core/browser/password_manager_client.h

Issue 444753002: Allow the browser to choose PasswordManager's authorization prompt policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: components/password_manager/core/browser/password_manager_client.h
diff --git a/components/password_manager/core/browser/password_manager_client.h b/components/password_manager/core/browser/password_manager_client.h
index cebe40121422158104e9d41e44647b9193a9ba0f..4607800d7357cba447fc5773ecca73a2414f282b 100644
--- a/components/password_manager/core/browser/password_manager_client.h
+++ b/components/password_manager/core/browser/password_manager_client.h
@@ -8,6 +8,7 @@
#include "base/metrics/field_trial.h"
#include "components/autofill/core/common/password_form.h"
#include "components/autofill/core/common/password_form_fill_data.h"
+#include "components/password_manager/core/browser/password_store.h"
class PrefService;
@@ -100,6 +101,11 @@ class PasswordManagerClient {
// displayed, and false otherwise.
virtual bool IsLoggingActive() const;
+ // Returns the authorization prompt policy to be used with the given form.
+ // Only relevant on OSX.
+ virtual PasswordStore::AuthorizationPromptPolicy GetAuthorizationPromptPolicy(
+ const autofill::PasswordForm& form);
+
private:
DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient);
};

Powered by Google App Engine
This is Rietveld 408576698