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

Unified Diff: components/offline_pages/background/request_queue_store_sql.cc

Issue 2113383002: More detailed implementation of the RequestPicker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR fixes per DougArnett Created 4 years, 5 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: components/offline_pages/background/request_queue_store_sql.cc
diff --git a/components/offline_pages/background/request_queue_store_sql.cc b/components/offline_pages/background/request_queue_store_sql.cc
index 79a1fe519ca3b92c4d92c199194d24051f509ab2..a1be28c893cfc63947c4eaef29bbd604b76ea2f2 100644
--- a/components/offline_pages/background/request_queue_store_sql.cc
+++ b/components/offline_pages/background/request_queue_store_sql.cc
@@ -22,6 +22,7 @@ namespace {
// This is a macro instead of a const so that
// it can be used inline in other SQL statements below.
#define REQUEST_QUEUE_TABLE_NAME "request_queue_v1"
+const bool kUserRequested = true;
bool CreateRequestQueueTable(sql::Connection* db) {
const char kSql[] = "CREATE TABLE IF NOT EXISTS " REQUEST_QUEUE_TABLE_NAME
@@ -93,7 +94,8 @@ SavePageRequest MakeSavePageRequest(const sql::Statement& statement) {
const ClientId client_id(statement.ColumnString(6),
statement.ColumnString(7));
- SavePageRequest request(id, url, client_id, creation_time, activation_time);
+ SavePageRequest request(
+ id, url, client_id, creation_time, activation_time, kUserRequested);
request.set_last_attempt_time(last_attempt_time);
request.set_attempt_count(last_attempt_count);
return request;

Powered by Google App Engine
This is Rietveld 408576698