[AtMemory][Android] Check AtMemory websites elgilibityAtalyk AkashNit: Typo
Done
*web_contents),Atalyk AkashOptional nit: `CHECK_DEREF`.
Done
if (!mf_controller_) {
mf_controller_ = ManualFillingController::GetOrCreate(&GetWebContents());
}
DCHECK(mf_controller_);
return mf_controller_;Atalyk AkashWhy do we save it into a member instead of just returning `ManualFillingController::GetOrCreate(&GetWebContents());`?
Unit test passed mockcontroller during testing using CreateForWebContentsForTesting, which is reused during testing.
void TearDown() override { ChromeRenderViewHostTestHarness::TearDown(); }Atalyk AkashDrop?
Done
EXPECT_CALL(mock_at_memory_controller_, RefreshSuggestions());Atalyk AkashNit: Drop.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Discussed offline, LGTM modulo we're going to redesign the manual fallback entry points.
DCHECK(web_contents) << "Need valid WebContents to attach controller to!";We don't use DCHECK anymore, use CHECK instead
https://g3doc.corp.google.com/devtools/library_club/g3doc/totw/labs/avoid-dcheck.md?cl=head
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
const bool is_eligible = autofill::MayPerformAtMemoryAction(Please try to do this check in the place where you add the icon to the list of icons in the keyboard accessory on the Java side.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (!mf_controller_) {
mf_controller_ = ManualFillingController::GetOrCreate(&GetWebContents());
}
DCHECK(mf_controller_);
return mf_controller_;Atalyk AkashWhy do we save it into a member instead of just returning `ManualFillingController::GetOrCreate(&GetWebContents());`?
Unit test passed mockcontroller during testing using CreateForWebContentsForTesting, which is reused during testing.
Could you explain this a bit more? `AtMemoryAccessoryControllerImpl::CreateForWebContentsForTesting` doesn't even access the member. What am I reading wrong?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
as discussed offline, Atalyk will explore simpler option to directly call for eligibility without complex logic
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |