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

Unified Diff: components/history/core/browser/url_database.cc

Issue 2781263002: Some C++11 cleanup of history types. (Closed)
Patch Set: Fix Android Created 3 years, 9 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 | « components/history/core/browser/history_types.cc ('k') | components/history/core/browser/url_row.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/url_database.cc
diff --git a/components/history/core/browser/url_database.cc b/components/history/core/browser/url_database.cc
index 8dd6088670ea33beea0de4a28f6cbcec5f4fac0f..248ecf47d865bd0944aad9a375fd9fa7f433977e 100644
--- a/components/history/core/browser/url_database.cc
+++ b/components/history/core/browser/url_database.cc
@@ -62,13 +62,13 @@ std::string URLDatabase::GURLToDatabaseURL(const GURL& gurl) {
// kURLRowFields.
void URLDatabase::FillURLRow(sql::Statement& s, URLRow* i) {
DCHECK(i);
- i->id_ = s.ColumnInt64(0);
- i->url_ = GURL(s.ColumnString(1));
- i->title_ = s.ColumnString16(2);
- i->visit_count_ = s.ColumnInt(3);
- i->typed_count_ = s.ColumnInt(4);
- i->last_visit_ = base::Time::FromInternalValue(s.ColumnInt64(5));
- i->hidden_ = s.ColumnInt(6) != 0;
+ i->set_id(s.ColumnInt64(0));
+ i->set_url(GURL(s.ColumnString(1)));
+ i->set_title(s.ColumnString16(2));
+ i->set_visit_count(s.ColumnInt(3));
+ i->set_typed_count(s.ColumnInt(4));
+ i->set_last_visit(base::Time::FromInternalValue(s.ColumnInt64(5)));
+ i->set_hidden(s.ColumnInt(6) != 0);
}
bool URLDatabase::GetURLRow(URLID url_id, URLRow* info) {
« no previous file with comments | « components/history/core/browser/history_types.cc ('k') | components/history/core/browser/url_row.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698