-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M116][Homepage] Record histograms for first-launch
Records histograms after all the initial Tab and partner customization is complete, including the case where the homepage is not cached (likely chrome-first-launch case). BUG=1433079, 1455160 (cherry picked from commit a3b2275) Change-Id: I0b49010019ea06497d98ba182815f04fe6134356 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4618807 Reviewed-by: Theresa Sullivan <twellington@chromium.org> Reviewed-by: Wenyu Fu <wenyufu@chromium.org> Reviewed-by: Sinan Sahin <sinansahin@google.com> Commit-Queue: Donn Denman <donnd@chromium.org> Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> Cr-Original-Commit-Position: refs/heads/main@{#1162990} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4658980 Commit-Queue: Wenyu Fu <wenyufu@chromium.org> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5845@{#315} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
Donn Denman
authored and
Chromium LUCI CQ
committed
Jul 5, 2023
1 parent
4e4e68c
commit dcaa017
Showing
11 changed files
with
1,434 additions
and
79 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
23 changes: 23 additions & 0 deletions
23
...src/org/chromium/chrome/browser/partnercustomizations/HomepageCharacterizationHelper.java
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,23 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
package org.chromium.chrome.browser.partnercustomizations; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
/** | ||
* Provides helper methods that characterize a Homepage so they can be accessed from modules such | ||
* as {@link PartnerBrowserCustomizations}. | ||
* TODO(https://crbug.com/1456533) move this to the Homepage Manager when Homepage is modularized. | ||
*/ | ||
public interface HomepageCharacterizationHelper { | ||
/** @return whether the given URL is the NTP. An input of (@code null} returns {@code false}. */ | ||
boolean isUrlNtp(@Nullable String url); | ||
|
||
/** @return whether the current Homepage is the Partner customized Homepage or NTP. */ | ||
boolean isPartner(); | ||
|
||
/** @return whether the current Homepage is any kind of NTP. */ | ||
boolean isNtp(); | ||
} |
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
Oops, something went wrong.