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

Issue 1975723002: Reduce the site engagement service public interface. (Closed)

Created:
4 years, 7 months ago by dominickn
Modified:
4 years, 7 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce the site engagement service public interface. This CL cleans up the site engagement service in two main ways. SiteEngagementScore is now in its own header, implementation, and test files, which moves nearly 1000 lines of code out of the SiteEngagementService files. The SiteEngagementHelper is now a public inner class of SiteEngagementService, which means several public methods in SiteEngagementService can be made private, cleaning up its public interface. BUG=610943 TBR=tedchoc@chromium.org,avi@chromium.org,dbeam@chromium.org,peter@chromium.org,benwells@chromium.org Committed: https://crrev.com/9d7502c4ce21d3441806c30817449305a0198ec7 Cr-Commit-Position: refs/heads/master@{#393800}

Patch Set 1 #

Patch Set 2 : Fix Android tests, alphabetize #

Patch Set 3 : Rebase #

Patch Set 4 : Fix friends #

Total comments: 2

Patch Set 5 : Addressing nit #

Patch Set 6 : Push messaging now uses engagement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1174 lines, -1094 lines) Patch
M chrome/browser/android/preferences/important_sites_util_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper_unittest.cc View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/engagement/site_engagement_eviction_policy.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/engagement/site_engagement_helper.h View 1 2 3 4 5 10 chunks +18 lines, -13 lines 0 comments Download
M chrome/browser/engagement/site_engagement_helper.cc View 1 2 3 4 5 7 chunks +43 lines, -44 lines 0 comments Download
M chrome/browser/engagement/site_engagement_helper_unittest.cc View 1 2 3 4 5 9 chunks +27 lines, -31 lines 0 comments Download
A chrome/browser/engagement/site_engagement_score.h View 1 2 3 4 5 1 chunk +177 lines, -0 lines 0 comments Download
A chrome/browser/engagement/site_engagement_score.cc View 1 2 3 4 5 1 chunk +305 lines, -0 lines 0 comments Download
A chrome/browser/engagement/site_engagement_score_unittest.cc View 1 chunk +411 lines, -0 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service.h View 1 2 3 4 5 7 chunks +38 lines, -184 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service.cc View 1 2 3 4 5 12 chunks +133 lines, -418 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service_unittest.cc View 1 2 3 4 5 10 chunks +12 lines, -392 lines 0 comments Download
M chrome/browser/push_messaging/background_budget_service.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/engagement/site_engagement_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (12 generated)
dominickn
PTAL, thanks!
4 years, 7 months ago (2016-05-13 02:12:35 UTC) #5
calamity
Awesome! lgtm. https://codereview.chromium.org/1975723002/diff/60001/chrome/browser/engagement/site_engagement_service.h File chrome/browser/engagement/site_engagement_service.h (right): https://codereview.chromium.org/1975723002/diff/60001/chrome/browser/engagement/site_engagement_service.h#newcode57 chrome/browser/engagement/site_engagement_service.h:57: // WebContentsObserver that detects engagement triggering events ...
4 years, 7 months ago (2016-05-16 04:35:49 UTC) #6
dominickn
Thanks! I will TBR the other owners as this is a purely refactoring/API change. The ...
4 years, 7 months ago (2016-05-16 04:53:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1975723002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1975723002/100001
4 years, 7 months ago (2016-05-16 07:01:44 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-16 07:09:28 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 07:10:22 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9d7502c4ce21d3441806c30817449305a0198ec7
Cr-Commit-Position: refs/heads/master@{#393800}

Powered by Google App Engine
This is Rietveld 408576698