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

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

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 8 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
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_db/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 "content/public/browser/interstitial_page.h" 15 #include "content/public/browser/interstitial_page.h"
16 #include "content/public/browser/navigation_entry.h" 16 #include "content/public/browser/navigation_entry.h"
17 #include "content/public/browser/user_metrics.h"
18 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
19 18
20 using base::UserMetricsAction;
21 using content::InterstitialPage; 19 using content::InterstitialPage;
22 using content::WebContents; 20 using content::WebContents;
23 using security_interstitials::SafeBrowsingErrorUI; 21 using security_interstitials::SafeBrowsingErrorUI;
24 using security_interstitials::SecurityInterstitialControllerClient; 22 using security_interstitials::SecurityInterstitialControllerClient;
25 23
26 namespace safe_browsing { 24 namespace safe_browsing {
27 25
28 namespace { 26 namespace {
29 27
30 // After a safe browsing interstitial where the user opted-in to the report 28 // After a safe browsing interstitial where the user opted-in to the report
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 base::MakeUnique<security_interstitials::MetricsHelper>( 342 base::MakeUnique<security_interstitials::MetricsHelper>(
345 unsafe_resources[0].url, GetReportingInfo(unsafe_resources), 343 unsafe_resources[0].url, GetReportingInfo(unsafe_resources),
346 history_service); 344 history_service);
347 345
348 return base::MakeUnique<SecurityInterstitialControllerClient>( 346 return base::MakeUnique<SecurityInterstitialControllerClient>(
349 web_contents, std::move(metrics_helper), nullptr, /* prefs */ 347 web_contents, std::move(metrics_helper), nullptr, /* prefs */
350 ui_manager->app_locale(), ui_manager->default_safe_page()); 348 ui_manager->app_locale(), ui_manager->default_safe_page());
351 } 349 }
352 350
353 } // namespace safe_browsing 351 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « components/metrics/stability_metrics_helper.cc ('k') | components/signin/core/browser/signin_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698