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

Side by Side Diff: components/safe_browsing/base_blocking_page.cc

Issue 2869383002: Unify safe_browsing* components [1]: move safe_browsing_prefs* (Closed)
Patch Set: fix win bots Created 3 years, 7 months 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 unified diff | Download patch
« no previous file with comments | « components/safe_browsing/BUILD.gn ('k') | components/safe_browsing/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/safe_browsing/base_blocking_page.h" 5 #include "components/safe_browsing/base_blocking_page.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "components/safe_browsing_db/safe_browsing_prefs.h" 12 #include "components/safe_browsing/common/safe_browsing_prefs.h"
13 #include "components/security_interstitials/content/security_interstitial_contro ller_client.h" 13 #include "components/security_interstitials/content/security_interstitial_contro ller_client.h"
14 #include "components/security_interstitials/core/metrics_helper.h" 14 #include "components/security_interstitials/core/metrics_helper.h"
15 #include "components/security_interstitials/core/safe_browsing_loud_error_ui.h" 15 #include "components/security_interstitials/core/safe_browsing_loud_error_ui.h"
16 #include "content/public/browser/interstitial_page.h" 16 #include "content/public/browser/interstitial_page.h"
17 #include "content/public/browser/navigation_entry.h" 17 #include "content/public/browser/navigation_entry.h"
18 #include "content/public/browser/web_contents.h" 18 #include "content/public/browser/web_contents.h"
19 19
20 using content::InterstitialPage; 20 using content::InterstitialPage;
21 using content::WebContents; 21 using content::WebContents;
22 using security_interstitials::BaseSafeBrowsingErrorUI; 22 using security_interstitials::BaseSafeBrowsingErrorUI;
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 base::MakeUnique<security_interstitials::MetricsHelper>( 344 base::MakeUnique<security_interstitials::MetricsHelper>(
345 unsafe_resources[0].url, GetReportingInfo(unsafe_resources), 345 unsafe_resources[0].url, GetReportingInfo(unsafe_resources),
346 history_service); 346 history_service);
347 347
348 return base::MakeUnique<SecurityInterstitialControllerClient>( 348 return base::MakeUnique<SecurityInterstitialControllerClient>(
349 web_contents, std::move(metrics_helper), nullptr, /* prefs */ 349 web_contents, std::move(metrics_helper), nullptr, /* prefs */
350 ui_manager->app_locale(), ui_manager->default_safe_page()); 350 ui_manager->app_locale(), ui_manager->default_safe_page());
351 } 351 }
352 352
353 } // namespace safe_browsing 353 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « components/safe_browsing/BUILD.gn ('k') | components/safe_browsing/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698