forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing GetSelectedSegment crash for start surface
This CL attempts to fix the crash in GetSelectedSegment by using the exact same cached param for building segmentation platform config as the Java layer. Earlier there was a crash on FRE because of difference in values between (1) Cached Java feature flag - called before caching finch flags, hence default value (2) Cached field trial param - called after caching finch flags, hence non-default value After this CL, we will always use the field trial param only, which should be consistent during chrome session. (cherry picked from commit 054c8f5) Bug: 1276124 Change-Id: Iedac74b330749e1dc35f61386a75c05f0435a578 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3330725 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Tommy Nyquist <nyquist@chromium.org> Commit-Queue: Shakti Sahu <shaktisahu@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#950772} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3335098 Commit-Queue: Krishna Govind <govind@chromium.org> Cr-Commit-Position: refs/branch-heads/4758@{#19} Cr-Branched-From: 4a2cf4b-refs/heads/main@{#950365}
- Loading branch information
Shakti Sahu
authored and
Chromium LUCI CQ
committed
Dec 13, 2021
1 parent
1d81009
commit 8e1d59b
Showing
5 changed files
with
26 additions
and
2 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
11 changes: 11 additions & 0 deletions
11
chrome/browser/ui/android/start_surface/start_surface_android.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2021 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_ANDROID_START_SURFACE_START_SURFACE_ANDROID_H_ | ||
#define CHROME_BROWSER_UI_ANDROID_START_SURFACE_START_SURFACE_ANDROID_H_ | ||
|
||
// Returns whether behavioural targeting is enabled in the variation params. | ||
bool IsStartSurfaceBehaviouralTargetingEnabled(); | ||
|
||
#endif // CHROME_BROWSER_UI_ANDROID_START_SURFACE_START_SURFACE_ANDROID_H_ |