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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 2586413002: Remove Autofill's ContainsNonNullEntryForNonNullKey. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698