| Index: android_webview/browser/aw_safe_browsing_ui_manager.cc
|
| diff --git a/android_webview/browser/aw_safe_browsing_ui_manager.cc b/android_webview/browser/aw_safe_browsing_ui_manager.cc
|
| index 3a5043d10f82449a58fa37d483aedfda664df46c..c8e1480616cdc592602bdd95db3d445c63b086c4 100644
|
| --- a/android_webview/browser/aw_safe_browsing_ui_manager.cc
|
| +++ b/android_webview/browser/aw_safe_browsing_ui_manager.cc
|
| @@ -25,7 +25,7 @@ void AwSafeBrowsingUIManager::DisplayBlockingPage(
|
| WebContents* web_contents = resource.web_contents_getter.Run();
|
| // Check the size of the view
|
| UIManagerClient* client = UIManagerClient::FromWebContents(web_contents);
|
| - if (!client || !client->CanShowBigInterstitial()) {
|
| + if (!client || !client->CanShowInterstitial()) {
|
| LOG(WARNING) << "The view is not suitable to show the SB interstitial";
|
| OnBlockingPageDone(std::vector<UnsafeResource>{resource}, false,
|
| web_contents, resource.url.GetWithEmptyPath());
|
| @@ -39,4 +39,16 @@ void AwSafeBrowsingUIManager::ShowBlockingPageForResource(
|
| AwSafeBrowsingBlockingPage::ShowBlockingPage(this, resource);
|
| }
|
|
|
| +bool AwSafeBrowsingUIManager::IsLoud(const UnsafeResource& resource) const {
|
| + WebContents* web_contents = resource.web_contents_getter.Run();
|
| + UIManagerClient* client = UIManagerClient::FromWebContents(web_contents);
|
| + return client && client->CanShowBigInterstitial();
|
| +}
|
| +
|
| +bool AwSafeBrowsingUIManager::IsGiant(const UnsafeResource& resource) const {
|
| + WebContents* web_contents = resource.web_contents_getter.Run();
|
| + UIManagerClient* client = UIManagerClient::FromWebContents(web_contents);
|
| + return client && client->ExtendsOutOfWindow();
|
| +}
|
| +
|
| } // namespace android_webview
|
|
|