OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #include "base/prefs/pref_registry_simple.h" | 7 #include "base/prefs/pref_registry_simple.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "base/prefs/testing_pref_service.h" | 9 #include "base/prefs/testing_pref_service.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 true); | 60 true); |
61 } | 61 } |
62 | 62 |
63 virtual bool ShouldFilterAutofillResult( | 63 virtual bool ShouldFilterAutofillResult( |
64 const autofill::PasswordForm& form) OVERRIDE { | 64 const autofill::PasswordForm& form) OVERRIDE { |
65 if (form == form_to_filter_) | 65 if (form == form_to_filter_) |
66 return true; | 66 return true; |
67 return false; | 67 return false; |
68 } | 68 } |
69 | 69 |
70 virtual void PromptUserToSavePassword( | 70 virtual bool PromptUserToSavePassword( |
vabr (Chromium)
2014/09/26 15:39:47
Actually, PromptUserToSavePassword is already defi
Sunil Ratnu
2014/09/26 16:01:20
Done.
| |
71 scoped_ptr<PasswordFormManager> form_to_save) OVERRIDE {} | 71 scoped_ptr<PasswordFormManager> form_to_save) OVERRIDE { return false;} |
72 virtual PrefService* GetPrefs() OVERRIDE { return &prefs_; } | 72 virtual PrefService* GetPrefs() OVERRIDE { return &prefs_; } |
73 virtual PasswordStore* GetPasswordStore() OVERRIDE { return password_store_; } | 73 virtual PasswordStore* GetPasswordStore() OVERRIDE { return password_store_; } |
74 virtual PasswordManagerDriver* GetDriver() OVERRIDE { return &driver_; } | 74 virtual PasswordManagerDriver* GetDriver() OVERRIDE { return &driver_; } |
75 virtual void AuthenticateAutofillAndFillForm( | 75 virtual void AuthenticateAutofillAndFillForm( |
76 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE { | 76 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE { |
77 driver_.FillPasswordForm(*fill_data.get()); | 77 driver_.FillPasswordForm(*fill_data.get()); |
78 } | 78 } |
79 | 79 |
80 void SetFormToFilter(const autofill::PasswordForm& form) { | 80 void SetFormToFilter(const autofill::PasswordForm& form) { |
81 form_to_filter_ = form; | 81 form_to_filter_ = form; |
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1236 EXPECT_CALL(form_manager, | 1236 EXPECT_CALL(form_manager, |
1237 UploadPasswordForm(_, | 1237 UploadPasswordForm(_, |
1238 autofill::ACCOUNT_CREATION_PASSWORD)).Times(1); | 1238 autofill::ACCOUNT_CREATION_PASSWORD)).Times(1); |
1239 form_manager.ProvisionallySave( | 1239 form_manager.ProvisionallySave( |
1240 form_to_save, | 1240 form_to_save, |
1241 PasswordFormManager::IGNORE_OTHER_POSSIBLE_USERNAMES); | 1241 PasswordFormManager::IGNORE_OTHER_POSSIBLE_USERNAMES); |
1242 form_manager.Save(); | 1242 form_manager.Save(); |
1243 } | 1243 } |
1244 | 1244 |
1245 } // namespace password_manager | 1245 } // namespace password_manager |
OLD | NEW |