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

Unified Diff: components/autofill/core/browser/webdata/autocomplete_syncable_service.cc

Issue 2582713003: [USS] Impelementation for GetData and GetAllData (Closed)
Patch Set: mark CreateAutofillEntry to public 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 | « components/autofill/core/browser/webdata/autocomplete_sync_bridge_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/webdata/autocomplete_syncable_service.cc
diff --git a/components/autofill/core/browser/webdata/autocomplete_syncable_service.cc b/components/autofill/core/browser/webdata/autocomplete_syncable_service.cc
index 76fb7fbdbcc36c9172872309f9ae01d095f4d0ad..aff312184ea179c5c829889602679feae971c9e1 100644
--- a/components/autofill/core/browser/webdata/autocomplete_syncable_service.cc
+++ b/components/autofill/core/browser/webdata/autocomplete_syncable_service.cc
@@ -317,7 +317,7 @@ void AutocompleteSyncableService::CreateOrUpdateEntry(
if (it == loaded_data->end()) {
// New entry.
base::Time date_created, date_last_used;
- if (timestamps.size() > 0) {
+ if (!timestamps.empty()) {
date_created = base::Time::FromInternalValue(*timestamps.begin());
date_last_used = base::Time::FromInternalValue(*timestamps.rbegin());
}
« no previous file with comments | « components/autofill/core/browser/webdata/autocomplete_sync_bridge_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698