Commit c8f7de64 authored by Xinghui Lu's avatar Xinghui Lu Committed by Commit Bot

Add scoped_oauth_token field in RTLookupRequest.

Bug: 1041912
Change-Id: I968bbd977896ba06020e190bd45d7e68bc0113f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2018709
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
Reviewed-by: default avatarVarun Khaneja <vakh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736548}
parent aad0d753
...@@ -1152,6 +1152,8 @@ std::string SerializeRTLookupPing(const RTLookupRequest& request) { ...@@ -1152,6 +1152,8 @@ std::string SerializeRTLookupPing(const RTLookupRequest& request) {
request_dict.SetKey("url", base::Value(request.url())); request_dict.SetKey("url", base::Value(request.url()));
request_dict.SetKey("population", request_dict.SetKey("population",
SerializeChromeUserPopulation(request.population())); SerializeChromeUserPopulation(request.population()));
request_dict.SetKey("scoped_oauth_token",
base::Value(request.scoped_oauth_token()));
std::string lookupType; std::string lookupType;
switch (request.lookup_type()) { switch (request.lookup_type()) {
......
...@@ -134,6 +134,7 @@ constexpr struct { ...@@ -134,6 +134,7 @@ constexpr struct {
{&kPasswordProtectionForSignedInUsers, true}, {&kPasswordProtectionForSignedInUsers, true},
{&kPromptAppForDeepScanning, true}, {&kPromptAppForDeepScanning, true},
{&kRealTimeUrlLookupEnabled, true}, {&kRealTimeUrlLookupEnabled, true},
{&kRealTimeUrlLookupEnabledWithToken, true},
{&kSendOnFocusPing, true}, {&kSendOnFocusPing, true},
{&kSendPasswordReusePing, true}, {&kSendPasswordReusePing, true},
{&kSendSampledPingsForAllowlistDomains, false}, {&kSendSampledPingsForAllowlistDomains, false},
......
...@@ -29,6 +29,9 @@ message RTLookupRequest { ...@@ -29,6 +29,9 @@ message RTLookupRequest {
// Mechanism to have different detection methods for different user // Mechanism to have different detection methods for different user
// population later. // population later.
optional ChromeUserPopulation population = 3; optional ChromeUserPopulation population = 3;
// Scoped OAuth token for throttling and validation.
optional string scoped_oauth_token = 4;
} }
message RTLookupResponse { message RTLookupResponse {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment