Skip to content

Commit

Permalink
fixup! Fix win build error
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Feb 3, 2024
1 parent b0e28d7 commit df7983b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -4471,11 +4471,14 @@ bool RenderViewContextMenu::CanTranslate(bool menu_logging) {
}

bool RenderViewContextMenu::CanPartiallyTranslateTargetLanguage() {
return false;
#if 0
ChromeTranslateClient* chrome_translate_client =
ChromeTranslateClient::FromWebContents(embedder_web_contents_);
return chrome_translate_client &&
chrome_translate_client->GetTranslateManager()
->CanPartiallyTranslateTargetLanguage();
#endif
}

void RenderViewContextMenu::MaybePrepareForLensQuery() {
Expand Down
3 changes: 2 additions & 1 deletion chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
Expand Up @@ -477,9 +477,10 @@ void DownloadsDOMHandler::DeepScan(const std::string& id) {
PromptForScanningInBubble(GetWebUIWebContents(), download);
return;
}

#if 0
LogDeepScanEvent(download,
safe_browsing::DeepScanEvent::kPromptAcceptedFromWebUI);
#endif
DownloadItemModel model(download);
DownloadCommands commands(model.GetWeakPtr());
commands.ExecuteCommand(DownloadCommands::DEEP_SCAN);
Expand Down

0 comments on commit df7983b

Please sign in to comment.