Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2872)

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc

Issue 2540563002: Move SafeBrowsingUIManager::UnsafeResource to security_interstitials namespace (Closed)
Patch Set: rebase update Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
index aa0d025d75063c7851d951b25f0e7557674f42f0..43699d1835b4be6061269b569ee25cc5ef94909e 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
@@ -159,7 +159,7 @@ class SafeBrowsingBlockingPageTest : public ChromeRenderViewHostTestHarness {
}
void ShowInterstitial(bool is_subresource, const char* url) {
- SafeBrowsingUIManager::UnsafeResource resource;
+ security_interstitials::UnsafeResource resource;
InitResource(&resource, is_subresource, GURL(url));
SafeBrowsingBlockingPage::ShowBlockingPage(ui_manager_.get(), resource);
}
@@ -204,7 +204,7 @@ class SafeBrowsingBlockingPageTest : public ChromeRenderViewHostTestHarness {
scoped_refptr<TestSafeBrowsingUIManager> ui_manager_;
private:
- void InitResource(SafeBrowsingUIManager::UnsafeResource* resource,
+ void InitResource(security_interstitials::UnsafeResource* resource,
bool is_subresource,
const GURL& url) {
resource->callback =
@@ -216,7 +216,7 @@ class SafeBrowsingBlockingPageTest : public ChromeRenderViewHostTestHarness {
resource->is_subresource = is_subresource;
resource->threat_type = SB_THREAT_TYPE_URL_MALWARE;
resource->web_contents_getter =
- SafeBrowsingUIManager::UnsafeResource::GetWebContentsGetter(
+ security_interstitials::UnsafeResource::GetWebContentsGetter(
web_contents()->GetRenderProcessHost()->GetID(),
web_contents()->GetMainFrame()->GetRoutingID());
resource->threat_source = safe_browsing::ThreatSource::LOCAL_PVER3;

Powered by Google App Engine
This is Rietveld 408576698