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

Unified Diff: chrome/browser/webdata/autofill_table.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/webdata/autofill_table.cc
diff --git a/chrome/browser/webdata/autofill_table.cc b/chrome/browser/webdata/autofill_table.cc
index aa4c225bc981ca790bc901d8958d96fc38811b38..9f6e314bb6883508f9a494fefe099c3e580cc050 100644
--- a/chrome/browser/webdata/autofill_table.cc
+++ b/chrome/browser/webdata/autofill_table.cc
@@ -9,10 +9,12 @@
#include <map>
#include <set>
#include <string>
+#include <utility>
#include <vector>
#include "base/i18n/case_conversion.h"
#include "base/logging.h"
+#include "base/stl_util.h"
#include "base/string_number_conversions.h"
#include "base/time.h"
#include "base/tuple.h"
@@ -38,10 +40,6 @@ typedef std::vector<Tuple3<int64, string16, string16> > AutofillElementList;
// TODO(dhollowa): Find a common place for this. It is duplicated in
dhollowa 2012/04/30 16:03:09 The TODO should be removed as well.
gavinp 2012/04/30 16:27:16 Doh. That was left in due to rebasing slippery fi
// personal_data_manager.cc.
-template<typename T>
-T* address_of(T& v) {
- return &v;
-}
string16 LimitDataSize(const string16& data) {
if (data.size() > AutofillTable::kMaxDataLength)

Powered by Google App Engine
This is Rietveld 408576698