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

Side by Side Diff: chrome/browser/ssl/bad_clock_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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/ssl/bad_clock_blocking_page.h" 5 #include "chrome/browser/ssl/bad_clock_blocking_page.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "chrome/browser/interstitials/chrome_controller_client.h" 12 #include "chrome/browser/interstitials/chrome_controller_client.h"
13 #include "chrome/browser/interstitials/chrome_metrics_helper.h" 13 #include "chrome/browser/interstitials/chrome_metrics_helper.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/renderer_preferences_util.h" 15 #include "chrome/browser/renderer_preferences_util.h"
16 #include "chrome/browser/ssl/cert_report_helper.h" 16 #include "chrome/browser/ssl/cert_report_helper.h"
17 #include "chrome/browser/ssl/ssl_cert_reporter.h" 17 #include "chrome/browser/ssl/ssl_cert_reporter.h"
18 #include "components/safe_browsing_db/safe_browsing_prefs.h" 18 #include "components/safe_browsing/common/safe_browsing_prefs.h"
19 #include "components/security_interstitials/core/bad_clock_ui.h" 19 #include "components/security_interstitials/core/bad_clock_ui.h"
20 #include "components/security_interstitials/core/metrics_helper.h" 20 #include "components/security_interstitials/core/metrics_helper.h"
21 #include "content/public/browser/interstitial_page.h" 21 #include "content/public/browser/interstitial_page.h"
22 #include "content/public/browser/interstitial_page_delegate.h" 22 #include "content/public/browser/interstitial_page_delegate.h"
23 #include "content/public/browser/navigation_controller.h" 23 #include "content/public/browser/navigation_controller.h"
24 #include "content/public/browser/navigation_entry.h" 24 #include "content/public/browser/navigation_entry.h"
25 #include "content/public/browser/render_process_host.h" 25 #include "content/public/browser/render_process_host.h"
26 #include "content/public/browser/render_view_host.h" 26 #include "content/public/browser/render_view_host.h"
27 #include "content/public/browser/ssl_status.h" 27 #include "content/public/browser/ssl_status.h"
28 #include "content/public/browser/web_contents.h" 28 #include "content/public/browser/web_contents.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 void BadClockBlockingPage::NotifyDenyCertificate() { 176 void BadClockBlockingPage::NotifyDenyCertificate() {
177 // It's possible that callback_ may not exist if the user clicks "Proceed" 177 // It's possible that callback_ may not exist if the user clicks "Proceed"
178 // followed by pressing the back button before the interstitial is hidden. 178 // followed by pressing the back button before the interstitial is hidden.
179 // In that case the certificate will still be treated as allowed. 179 // In that case the certificate will still be treated as allowed.
180 if (callback_.is_null()) 180 if (callback_.is_null())
181 return; 181 return;
182 182
183 base::ResetAndReturn(&callback_) 183 base::ResetAndReturn(&callback_)
184 .Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL); 184 .Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL);
185 } 185 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/ui_manager_unittest.cc ('k') | chrome/browser/ssl/captive_portal_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698