-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wallet usage ping parameter after updating to 1.36.x #12488
Conversation
@@ -463,7 +463,8 @@ void RegisterLocalStatePrefs(PrefRegistrySimple* registry) { | |||
registry->RegisterIntegerPref(kLastCheckMonth, 0); | |||
registry->RegisterStringPref(kLastCheckYMD, std::string()); | |||
registry->RegisterStringPref(kWeekOfInstallation, std::string()); | |||
registry->RegisterTimePref(kBraveWalletPingReportedUnlockTime, base::Time()); | |||
registry->RegisterTimePref(kBraveWalletPingReportedUnlockTime, | |||
base::Time::Now()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is a similar work around for kBraveWalletP3ALastReportTime
in #12480?
Will this only help profiles upgrading from 1.35? It seems like this would have no effect if they're already launched a 1.36 release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally separate issue, and yes you are correct! This will only fix upgrades to 1.36.x. With the current code, if they already used their wallet in 1.35.x, upgraded to 1.36.x and launched their browser for the first time after the upgrade, the damage has already been done. This will only fix future upgrades to 1.36.x (i.e. Linux, which is usually delayed).
4bbe4be
to
198000e
Compare
@@ -219,7 +224,7 @@ GURL BraveStatsUpdaterParams::GetUpdateURL( | |||
update_url = | |||
net::AppendQueryParameter(update_url, "arch", GetProcessArchParam()); | |||
update_url = | |||
net::AppendQueryParameter(update_url, "wallet", GetWalletEnabledParam()); | |||
net::AppendQueryParameter(update_url, "wallet2", GetWalletEnabledParam()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed the wallet param in the usage ping so we can filter out the erroneous data and start over for this month. Thoughts? cc @bbondy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm cool with it.
great name :P
if (is_last_wallet_unlock_v2_) | ||
usage_bitset = UsageBitfieldFromTimestamp(wallet_last_unlocked_, | ||
last_reported_wallet_unlock_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curly braces around the conditional body, please. Direct bodies like this are harder to read an error prone.
198000e
to
c515123
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems simpler!
Verification PASSED on
Using the second STR/Case mentioned via #12488 (comment) for Nightly, went through the following:
Ensured that
Ensured that
Ensured that
|
Resolves brave/brave-browser#21476
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Another one:
Regression testing of brave/brave-browser#20956 recommended