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

Side by Side Diff: chrome/browser/engagement/important_sites_util.cc

Issue 2735333002: Rename SiteEngagementService::ResetScoreForURL. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/engagement/important_sites_util.h" 5 #include "chrome/browser/engagement/important_sites_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 CROSSED_REASON_BOUNDARY); 476 CROSSED_REASON_BOUNDARY);
477 } 477 }
478 } 478 }
479 479
480 void ImportantSitesUtil::MarkOriginAsImportantForTesting(Profile* profile, 480 void ImportantSitesUtil::MarkOriginAsImportantForTesting(Profile* profile,
481 const GURL& origin) { 481 const GURL& origin) {
482 SiteEngagementScore::SetParamValuesForTesting(); 482 SiteEngagementScore::SetParamValuesForTesting();
483 // First get data from site engagement. 483 // First get data from site engagement.
484 SiteEngagementService* site_engagement_service = 484 SiteEngagementService* site_engagement_service =
485 SiteEngagementService::Get(profile); 485 SiteEngagementService::Get(profile);
486 site_engagement_service->ResetScoreForURL( 486 site_engagement_service->ResetBaseScoreForURL(
487 origin, SiteEngagementScore::GetMediumEngagementBoundary()); 487 origin, SiteEngagementScore::GetMediumEngagementBoundary());
488 DCHECK(site_engagement_service->IsEngagementAtLeast( 488 DCHECK(site_engagement_service->IsEngagementAtLeast(
489 origin, blink::mojom::EngagementLevel::MEDIUM)); 489 origin, blink::mojom::EngagementLevel::MEDIUM));
490 } 490 }
OLDNEW
« no previous file with comments | « chrome/browser/budget_service/budget_manager_unittest.cc ('k') | chrome/browser/engagement/important_sites_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698