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

Unified Diff: chrome/browser/autofill/personal_data_manager.cc

Issue 10261004: Move both instances of address_of into stl_util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/autofill/personal_data_manager.cc
diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc
index 7ab1285b12b8687d93255789426392c5223da976..592d13f6e976c70ed3d79235ff6915852335d133 100644
--- a/chrome/browser/autofill/personal_data_manager.cc
+++ b/chrome/browser/autofill/personal_data_manager.cc
@@ -6,8 +6,10 @@
#include <algorithm>
#include <iterator>
+#include <string>
#include "base/logging.h"
+#include "base/stl_util.h"
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/autofill/autofill-inl.h"
@@ -68,11 +70,6 @@ class DereferenceFunctor {
}
};
-template<typename T>
-T* address_of(T& v) {
- return &v;
-}
-
bool IsValidEmail(const string16& value) {
// This regex is more permissive than the official rfc2822 spec on the
// subject, but it does reject obvious non-email addresses.

Powered by Google App Engine
This is Rietveld 408576698