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

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

Issue 600873002: Order returning profiles and card by descending date_modified (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« 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/core/browser/webdata/autofill_table.cc
diff --git a/components/autofill/core/browser/webdata/autofill_table.cc b/components/autofill/core/browser/webdata/autofill_table.cc
index b5a3a4efe241cce0e8fcdacdea33dddeb5a28cc5..08b5b614f3583cdfcf9c97405851469f996d52d2 100644
--- a/components/autofill/core/browser/webdata/autofill_table.cc
+++ b/components/autofill/core/browser/webdata/autofill_table.cc
@@ -930,7 +930,7 @@ bool AutofillTable::GetAutofillProfiles(
sql::Statement s(db_->GetUniqueStatement(
"SELECT guid "
"FROM autofill_profiles "
- "ORDER BY date_modified, guid"));
+ "ORDER BY date_modified DESC, guid"));
Evan Stade 2014/09/25 00:00:06 I meant here, not on trunk
Ilya Sherman 2014/09/25 00:08:55 Oh, I have no idea how I missed that. My bad.
while (s.Step()) {
std::string guid = s.ColumnString(0);
@@ -1069,7 +1069,7 @@ bool AutofillTable::GetCreditCards(
sql::Statement s(db_->GetUniqueStatement(
"SELECT guid "
"FROM credit_cards "
- "ORDER BY date_modified, guid"));
+ "ORDER BY date_modified DESC, guid"));
while (s.Step()) {
std::string guid = s.ColumnString(0);
« 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