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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 242483003: Move CaptivePortalDetector to src/components/captive_portal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move CaptivePortalStatus back Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 1846
1847 prerender::PrerenderContents* prerender_contents = 1847 prerender::PrerenderContents* prerender_contents =
1848 prerender::PrerenderContents::FromWebContents(tab); 1848 prerender::PrerenderContents::FromWebContents(tab);
1849 if (prerender_contents) { 1849 if (prerender_contents) {
1850 prerender_contents->Destroy(prerender::FINAL_STATUS_SSL_ERROR); 1850 prerender_contents->Destroy(prerender::FINAL_STATUS_SSL_ERROR);
1851 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL; 1851 *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL;
1852 return; 1852 return;
1853 } 1853 }
1854 1854
1855 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 1855 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
1856 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper = 1856 CaptivePortalTabHelper* captive_portal_tab_helper =
1857 captive_portal::CaptivePortalTabHelper::FromWebContents(tab); 1857 CaptivePortalTabHelper::FromWebContents(tab);
1858 if (captive_portal_tab_helper) 1858 if (captive_portal_tab_helper)
1859 captive_portal_tab_helper->OnSSLCertError(ssl_info); 1859 captive_portal_tab_helper->OnSSLCertError(ssl_info);
1860 #endif 1860 #endif
1861 1861
1862 // Otherwise, display an SSL blocking page. 1862 // Otherwise, display an SSL blocking page.
1863 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable, 1863 new SSLBlockingPage(tab, cert_error, ssl_info, request_url, overridable,
1864 strict_enforcement, callback); 1864 strict_enforcement, callback);
1865 } 1865 }
1866 1866
1867 void ChromeContentBrowserClient::SelectClientCertificate( 1867 void ChromeContentBrowserClient::SelectClientCertificate(
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
2716 switches::kDisableWebRtcEncryption, 2716 switches::kDisableWebRtcEncryption,
2717 }; 2717 };
2718 to_command_line->CopySwitchesFrom(from_command_line, 2718 to_command_line->CopySwitchesFrom(from_command_line,
2719 kWebRtcDevSwitchNames, 2719 kWebRtcDevSwitchNames,
2720 arraysize(kWebRtcDevSwitchNames)); 2720 arraysize(kWebRtcDevSwitchNames));
2721 } 2721 }
2722 } 2722 }
2723 #endif // defined(ENABLE_WEBRTC) 2723 #endif // defined(ENABLE_WEBRTC)
2724 2724
2725 } // namespace chrome 2725 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698