-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS] [WebChannels] Record follow count histogram and user action
Records the number of followed publishers when: 1. Selecting Following feed and content is shown 2. Selecting Following feed and no content is shown 3. Following a channel 4. Unfollowing a channel 5. Engaging with the Following feed Uses a new FollowDelegate so that the NTPCoordinator can make calls to the FollowProvider on behalf of the FeedMetricsRecorder. Follow/Unfollow channels will be logged in a separate CL. Also logs user actions for each feed being selected from the header. (cherry picked from commit fc35eb0) Bug: 1322640 Change-Id: Idc696e46b9a743dda89e6277608612ee99051425 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3644971 Commit-Queue: Adam Arcaro <adamta@google.com> Reviewed-by: Sergio Collazos <sczs@chromium.org> Reviewed-by: Dan H <harringtond@chromium.org> Reviewed-by: Justin DeWitt <dewittj@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1004531} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3655701 Commit-Queue: Tina Wang <tinazwang@chromium.org> Cr-Commit-Position: refs/branch-heads/5060@{#190} Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
- Loading branch information
Showing
10 changed files
with
174 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2022 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_FOLLOW_DELEGATE_H_ | ||
#define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_FOLLOW_DELEGATE_H_ | ||
|
||
// Delegate for getting information relating to Following. | ||
@protocol NewTabPageFollowDelegate | ||
|
||
// Returns the number of publishers the user follows. | ||
- (NSUInteger)followedPublisherCount; | ||
|
||
// Returns whether the user has content in their Following feed. | ||
- (BOOL)doesFollowingFeedHaveContent; | ||
|
||
@end | ||
|
||
#endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_FOLLOW_DELEGATE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters