| 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.
|
|
|