| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (result == EmailVerificationResult::kDismissed) {Since `EXPECT_EQ(result, EmailVerificationResult::kIgnored)` ensures `result` won't be `kDismissed` (otherwise the test fails), this `if` block acts as dead code and can safely be removed.
kDismissed = 1,Please fix this WARNING reported by autoreview issue finding: Consider renaming `kDismissed` to `kDeclined`.
"Dismissed" is generally interpreted as closing or ignoring a dialog without taking explicit action (which corresponds to `kIgnored` here). Even the test names reflect this terminology: `VerificationDismissed` simulates `kIgnored`, while `DeclineAddsStrike` simulates `kDismissed`.
Renaming this would clarify that this enum value represents an explicit user decline and better align with both the commit message and the UI telemetry (`EvpPermissionUiStatus::kDeclined`).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
enum class EmailVerificationResult {EmailVerificationPromptResult?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
if (result == EmailVerificationResult::kDismissed) {Since `EXPECT_EQ(result, EmailVerificationResult::kIgnored)` ensures `result` won't be `kDismissed` (otherwise the test fails), this `if` block acts as dead code and can safely be removed.
Done
kDismissed = 1,Yi GukNotNow?
I renamed it to Declined per Mohamed's suggestion. "NotNow" is string centric and the essence of the action is "user declining the prompt". Let me know if you feel strongly about using "NotNow".
enum class EmailVerificationResult {Yi GuEmailVerificationPromptResult?
Good point. Although I used EmailVerificationPermissionUiResult instead. "prompt" is a bit generic IMO. e.g. the toast may also be called "prompt" since it has buttons taking actions (especially for opt-in users the toast is the only UI in EVP).
kDismissed = 1,Please fix this WARNING reported by autoreview issue finding: Consider renaming `kDismissed` to `kDeclined`.
"Dismissed" is generally interpreted as closing or ignoring a dialog without taking explicit action (which corresponds to `kIgnored` here). Even the test names reflect this terminology: `VerificationDismissed` simulates `kIgnored`, while `DeclineAddsStrike` simulates `kDismissed`.
Renaming this would clarify that this enum value represents an explicit user decline and better align with both the commit message and the UI telemetry (`EvpPermissionUiStatus::kDeclined`).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |