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

Side by Side Diff: components/webdata/autofill/autofill_entry.cc

Issue 13973004: Convert string16 -> base::string16 in components/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "components/webdata/autofill/autofill_entry.h" 5 #include "components/webdata/autofill/autofill_entry.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 12
13 namespace { 13 namespace {
14 14
15 // The period after which Autofill entries should expire in days. 15 // The period after which Autofill entries should expire in days.
16 const int64 kExpirationPeriodInDays = 60; 16 const int64 kExpirationPeriodInDays = 60;
17 17
18 } // namespace 18 } // namespace
19 19
20 AutofillKey::AutofillKey() {} 20 AutofillKey::AutofillKey() {}
21 21
22 AutofillKey::AutofillKey(const string16& name, const string16& value) 22 AutofillKey::AutofillKey(const base::string16& name,
23 const base::string16& value)
23 : name_(name), 24 : name_(name),
24 value_(value) { 25 value_(value) {
25 } 26 }
26 27
27 AutofillKey::AutofillKey(const char* name, const char* value) 28 AutofillKey::AutofillKey(const char* name, const char* value)
28 : name_(UTF8ToUTF16(name)), 29 : name_(UTF8ToUTF16(name)),
29 value_(UTF8ToUTF16(value)) { 30 value_(UTF8ToUTF16(value)) {
30 } 31 }
31 32
32 AutofillKey::AutofillKey(const AutofillKey& key) 33 AutofillKey::AutofillKey(const AutofillKey& key)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return false; 117 return false;
117 } 118 }
118 119
119 result->push_back(source.front()); 120 result->push_back(source.front());
120 result->push_back(source.back()); 121 result->push_back(source.back());
121 122
122 DVLOG(1) << "Culling timestamps. Current count is : " << source.size(); 123 DVLOG(1) << "Culling timestamps. Current count is : " << source.size();
123 124
124 return true; 125 return true;
125 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698