blob: a86971d24eaee73ec8bef90ba9d786d1d97fefb6 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/interstitials/chrome_settings_page_helper.h"
#include "build/build_config.h"
#include "content/public/browser/web_contents.h"
#if !defined(OS_ANDROID)
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/chrome_pages.h"
#endif
namespace security_interstitials {
// static
std::unique_ptr<security_interstitials::SettingsPageHelper>
ChromeSettingsPageHelper::CreateChromeSettingsPageHelper() {
return std::make_unique<security_interstitials::ChromeSettingsPageHelper>();
}
void ChromeSettingsPageHelper::OpenEnhancedProtectionSettings(
content::WebContents* web_contents) const {
#if defined(OS_ANDROID)
// TODO(crbug.com/1130721): Implement on Android.
#else
chrome::ShowSafeBrowsingEnhancedProtection(
chrome::FindBrowserWithWebContents(web_contents));
#endif
}
} // namespace security_interstitials