-
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.
[ConsentV2] Integrate the consent dialog with the Chrome Cart
Demo: https://screencast.googleplex.com/cast/NDYzOTQxNjUwMTkyNzkzNnxkZjRiYWNkNC01NQ (cherry picked from commit bb4147a) Change-Id: I30445980da486baae27d75a86d6b13bab3811b3d Bug: 1317519 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3631228 Reviewed-by: Peter Kasting <pkasting@chromium.org> Reviewed-by: Wei-Yin Chen <wychen@chromium.org> Commit-Queue: Mei Liang <meiliang@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1007202} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3679887 Owners-Override: Prudhvikumar Bommana <pbommana@google.com> Reviewed-by: Prudhvikumar Bommana <pbommana@google.com> Cr-Commit-Position: refs/branch-heads/5060@{#432} Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
- Loading branch information
Mei Liang
authored and
Chromium LUCI CQ
committed
May 31, 2022
1 parent
780a34a
commit 2813799
Showing
12 changed files
with
61 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
meiliang@chromium.org | ||
|
||
file://components/commerce/OWNERS |
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 CHROME_BROWSER_UI_COMMERCE_COMMERCE_PROMPT_H_ | ||
#define CHROME_BROWSER_UI_COMMERCE_COMMERCE_PROMPT_H_ | ||
|
||
#include "chrome/browser/cart/chrome_cart.mojom.h" | ||
|
||
class Browser; | ||
|
||
namespace commerce { | ||
// Factory function to create and show the discount consent prompts for chrome. | ||
void ShowDiscountConsentPrompt( | ||
Browser* browser, | ||
base::OnceCallback<void(chrome_cart::mojom::ConsentStatus)> callback); | ||
} // namespace commerce | ||
|
||
#endif // CHROME_BROWSER_UI_COMMERCE_COMMERCE_PROMPT_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
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