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

Unified Diff: chrome/browser/budget_service/budget.proto

Issue 2255813002: AddEngagementBudget and SpendBudget added to BudgetDatabase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added expiration check in SpendBudget Created 4 years, 4 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: chrome/browser/budget_service/budget.proto
diff --git a/chrome/browser/budget_service/budget.proto b/chrome/browser/budget_service/budget.proto
index e0c76e1655efc16c4872be19eafdf6285f785c66..0fc5a58de05459f81e36c7358a8308003a3cc6a7 100644
--- a/chrome/browser/budget_service/budget.proto
+++ b/chrome/browser/budget_service/budget.proto
@@ -9,10 +9,14 @@ package budget_service;
// Chrome requires this.
option optimize_for = LITE_RUNTIME;
-// Next available id: 2
+// Next available id: 3
message Budget {
// The sequence of budget chunks and their expiration times.
repeated BudgetChunk budget = 1;
+
+ // The timestamp of the last time that new budget was awarded. This stores
+ // the internal value needed to construct a base::Time object.
+ optional int64 last_updated = 2;
johnme 2016/08/19 18:48:35 Nit: rename this to clarify that only engagement a
harkness 2016/08/22 13:46:25 Done.
}
// Next available id: 3
« no previous file with comments | « no previous file | chrome/browser/budget_service/budget_database.h » ('j') | chrome/browser/budget_service/budget_database.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698