| Index: components/autofill/content/renderer/password_autofill_agent.cc
|
| diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
|
| index 5163c56b0c09820b7f9b2b12211618c4c385297f..81e5d4c9befa99faff58ed758c239be8f56097cd 100644
|
| --- a/components/autofill/content/renderer/password_autofill_agent.cc
|
| +++ b/components/autofill/content/renderer/password_autofill_agent.cc
|
| @@ -558,19 +558,6 @@ bool FillFormOnPasswordReceived(
|
| field_value_and_properties_map, registration_callback, logger);
|
| }
|
|
|
| -// Takes a |map| with pointers as keys and linked_ptr as values, and returns
|
| -// true if |key| is not NULL and |map| contains a non-NULL entry for |key|.
|
| -// Makes sure not to create an entry as a side effect of using the operator [].
|
| -template <class Key, class Value>
|
| -bool ContainsNonNullEntryForNonNullKey(
|
| - const std::map<Key*, linked_ptr<Value>>& map,
|
| - Key* key) {
|
| - if (!key)
|
| - return false;
|
| - auto it = map.find(key);
|
| - return it != map.end() && it->second.get();
|
| -}
|
| -
|
| } // namespace
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|