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

Unified Diff: chrome/browser/budget_service/budget_service_impl.cc

Issue 2934063002: Always use milliseconds in the Budget API implementation (Closed)
Patch Set: Created 3 years, 6 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 | « chrome/browser/budget_service/budget_database_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/budget_service/budget_service_impl.cc
diff --git a/chrome/browser/budget_service/budget_service_impl.cc b/chrome/browser/budget_service/budget_service_impl.cc
index 2db176cbc6e2f8da9ce771f30edb04aea2f6b104..4346680fe3379df781d3417f52c9ba899a58d059 100644
--- a/chrome/browser/budget_service/budget_service_impl.cc
+++ b/chrome/browser/budget_service/budget_service_impl.cc
@@ -68,7 +68,8 @@ void BudgetServiceImpl::GetBudget(const url::Origin& origin,
blink::mojom::PermissionStatus::GRANTED) {
blink::mojom::BudgetStatePtr empty_state(blink::mojom::BudgetState::New());
empty_state->budget_at = 0;
- empty_state->time = base::Time::Now().ToDoubleT();
+ empty_state->time =
+ base::Time::Now().ToDoubleT() * base::Time::kMillisecondsPerSecond;
std::vector<blink::mojom::BudgetStatePtr> predictions;
predictions.push_back(std::move(empty_state));
« no previous file with comments | « chrome/browser/budget_service/budget_database_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698