Skip to content

Commit

Permalink
workloads/speedometer: Dismiss notification pop-up
Browse files Browse the repository at this point in the history
When speedometer is running on a Chrome package on Android 14, a pop-up
window was showing on the screen. Chrome preferences file is modified
to dismiss the window.
  • Loading branch information
eliftopuz authored and marcbonnici committed May 30, 2024
1 parent e0bf766 commit 4e9d402
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wa/workloads/speedometer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def setup(self, context):
'<boolean name="first_run_tos_accepted" value="true" />\n',
'<boolean name="first_run_signin_complete" value="true" />\n',
'<boolean name="displayed_data_reduction_promo" value="true" />\n',
# Add a 'request count' value to dismiss the pop-up window on the screen.
# If the value is greater than 1, pop-up window will be dismissed.
'<int name="Chrome.NotificationPermission.RequestCount" value="2" />\n',
]:
lines.insert(len(lines) - 1, line)

Expand Down

0 comments on commit 4e9d402

Please sign in to comment.