Skip to content

Commit

Permalink
Fixes a crash on a DApp websites when we execute a wallet detection e…
Browse files Browse the repository at this point in the history
…vent on Android (uplift to 1.47.x) (#16847)
  • Loading branch information
brave-builds authored Jan 25, 2023
1 parent 154f59d commit 4d34e55
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ void ShowWalletOnboarding(content::WebContents*) {
Java_BraveWalletProviderDelegateImplHelper_showWalletOnboarding(env);
}

void ShowAccountCreation(content::WebContents* web_contents,
const std::string& keyring_id) {
void ShowAccountCreation(content::WebContents*, const std::string& keyring_id) {
JNIEnv* env = base::android::AttachCurrentThread();
Java_BraveWalletProviderDelegateImplHelper_ShowAccountCreation(
env, base::android::ConvertUTF8ToJavaString(env, keyring_id));
}

void WalletInteractionDetected(content::WebContents* web_contents) {
if (!web_contents)
return;
Java_BraveWalletProviderDelegateImplHelper_walletInteractionDetected(
base::android::AttachCurrentThread(), web_contents->GetJavaWebContents());
}
Expand Down

0 comments on commit 4d34e55

Please sign in to comment.