Adds NewTabPromo as a member of NewTabButton to support browsertests
Changes this CL: - Renames NewTabPromo::CreateSelfOwned to NewTabPromo::Create. - Adds a NewTabPromo as a member variable of NewTabButton for the following reasons: 1. To make the promo more accessible in order to check visibility in browsertests. 2. To tie the NewTabPromo to the specific NewTabButton it is being shown by. Bug: 734132 Change-Id: I71993f0185d712b62ac98706b165b078c4bb574b Reviewed-on: https://chromium-review.googlesource.com/594627 Commit-Queue: Christopher Benson <chrisbenson@google.com> Reviewed-by:Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#491625}
Showing
Please register or sign in to comment