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

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

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)
Patch Set: ncarter comments Created 4 years, 2 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_database.cc
diff --git a/chrome/browser/budget_service/budget_database.cc b/chrome/browser/budget_service/budget_database.cc
index 3396fc57c0c43cbc6bb47595596618b48f6163f8..b4e7f88a5e0b0f2df3e53ebc428c6ba4fb7bc9bd 100644
--- a/chrome/browser/budget_service/budget_database.cc
+++ b/chrome/browser/budget_service/budget_database.cc
@@ -181,7 +181,7 @@ void BudgetDatabase::SpendBudgetAfterSync(const url::Origin& origin,
// Get the current SES score, to generate UMA.
SiteEngagementService* service = SiteEngagementService::Get(profile_);
- double score = service->GetScore(GURL(origin.Serialize()));
+ double score = service->GetScore(origin.GetURL());
// Walk the list of budget chunks to see if the origin has enough budget.
double total = 0;
@@ -305,7 +305,7 @@ void BudgetDatabase::SyncLoadedCache(const url::Origin& origin,
void BudgetDatabase::AddEngagementBudget(const url::Origin& origin) {
// Get the current SES score, which we'll use to set a new budget.
SiteEngagementService* service = SiteEngagementService::Get(profile_);
- double score = service->GetScore(GURL(origin.Serialize()));
+ double score = service->GetScore(origin.GetURL());
// By default we award the "full" award. Then that ratio is decreased if
// there have been other awards recently.

Powered by Google App Engine
This is Rietveld 408576698