OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "chrome/browser/ui/cocoa/website_settings/website_settings_bubble_contro
ller.h" | 5 #import "chrome/browser/ui/cocoa/website_settings/website_settings_bubble_contro
ller.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #import <AppKit/AppKit.h> | 9 #import <AppKit/AppKit.h> |
10 | 10 |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 DCHECK(certificateId_); | 516 DCHECK(certificateId_); |
517 ShowCertificateViewerByID(webContents_, [self parentWindow], certificateId_); | 517 ShowCertificateViewerByID(webContents_, [self parentWindow], certificateId_); |
518 } | 518 } |
519 | 519 |
520 // Handler for the link button to revoke user certificate decisions. | 520 // Handler for the link button to revoke user certificate decisions. |
521 - (void)resetCertificateDecisions:(id)sender { | 521 - (void)resetCertificateDecisions:(id)sender { |
522 DCHECK(resetDecisionsButton_); | 522 DCHECK(resetDecisionsButton_); |
523 ChromeSSLHostStateDelegate* delegate = | 523 ChromeSSLHostStateDelegate* delegate = |
524 presenter_->chrome_ssl_host_state_delegate(); | 524 presenter_->chrome_ssl_host_state_delegate(); |
525 DCHECK(delegate); | 525 DCHECK(delegate); |
526 delegate->RevokeUserDecisionsHard(presenter_->site_url().host()); | 526 delegate->RevokeUserAllowExceptionsHard(presenter_->site_url().host()); |
527 [self close]; | 527 [self close]; |
528 } | 528 } |
529 | 529 |
530 // Handler for the link to show help information about the connection tab. | 530 // Handler for the link to show help information about the connection tab. |
531 - (void)showHelpPage:(id)sender { | 531 - (void)showHelpPage:(id)sender { |
532 webContents_->OpenURL(content::OpenURLParams( | 532 webContents_->OpenURL(content::OpenURLParams( |
533 GURL(chrome::kPageInfoHelpCenterURL), content::Referrer(), | 533 GURL(chrome::kPageInfoHelpCenterURL), content::Referrer(), |
534 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false)); | 534 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false)); |
535 } | 535 } |
536 | 536 |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 [bubble_controller_ setPermissionInfo:permission_info_list]; | 1224 [bubble_controller_ setPermissionInfo:permission_info_list]; |
1225 } | 1225 } |
1226 | 1226 |
1227 void WebsiteSettingsUIBridge::SetFirstVisit(const base::string16& first_visit) { | 1227 void WebsiteSettingsUIBridge::SetFirstVisit(const base::string16& first_visit) { |
1228 [bubble_controller_ setFirstVisit:first_visit]; | 1228 [bubble_controller_ setFirstVisit:first_visit]; |
1229 } | 1229 } |
1230 | 1230 |
1231 void WebsiteSettingsUIBridge::SetSelectedTab(TabId tab_id) { | 1231 void WebsiteSettingsUIBridge::SetSelectedTab(TabId tab_id) { |
1232 [bubble_controller_ setSelectedTab:tab_id]; | 1232 [bubble_controller_ setSelectedTab:tab_id]; |
1233 } | 1233 } |
OLD | NEW |