| OLD | NEW |
| 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/ui/views/page_info/page_info_bubble_view.h" | 5 #include "chrome/browser/ui/views/page_info/page_info_bubble_view.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 if (!ui::MaterialDesignController::IsSecondaryUiMaterial()) | 240 if (!ui::MaterialDesignController::IsSecondaryUiMaterial()) |
| 241 link_style.font_style |= gfx::Font::FontStyle::UNDERLINE; | 241 link_style.font_style |= gfx::Font::FontStyle::UNDERLINE; |
| 242 link_style.disable_line_wrapping = false; | 242 link_style.disable_line_wrapping = false; |
| 243 | 243 |
| 244 details_label_->AddStyleRange(details_range, link_style); | 244 details_label_->AddStyleRange(details_range, link_style); |
| 245 } | 245 } |
| 246 | 246 |
| 247 void BubbleHeaderView::AddResetDecisionsLabel() { | 247 void BubbleHeaderView::AddResetDecisionsLabel() { |
| 248 std::vector<base::string16> subst; | 248 std::vector<base::string16> subst; |
| 249 subst.push_back( | 249 subst.push_back( |
| 250 l10n_util::GetStringUTF16(IDS_PAGEINFO_INVALID_CERTIFICATE_DESCRIPTION)); | 250 l10n_util::GetStringUTF16(IDS_PAGE_INFO_INVALID_CERTIFICATE_DESCRIPTION)); |
| 251 subst.push_back(l10n_util::GetStringUTF16( | 251 subst.push_back(l10n_util::GetStringUTF16( |
| 252 IDS_PAGEINFO_RESET_INVALID_CERTIFICATE_DECISIONS_BUTTON)); | 252 IDS_PAGE_INFO_RESET_INVALID_CERTIFICATE_DECISIONS_BUTTON)); |
| 253 | 253 |
| 254 std::vector<size_t> offsets; | 254 std::vector<size_t> offsets; |
| 255 | 255 |
| 256 base::string16 text = base::ReplaceStringPlaceholders( | 256 base::string16 text = base::ReplaceStringPlaceholders( |
| 257 base::ASCIIToUTF16("$1 $2"), subst, &offsets); | 257 base::ASCIIToUTF16("$1 $2"), subst, &offsets); |
| 258 reset_decisions_label_ = new views::StyledLabel(text, styled_label_listener_); | 258 reset_decisions_label_ = new views::StyledLabel(text, styled_label_listener_); |
| 259 reset_decisions_label_->set_id(STYLED_LABEL_RESET_CERTIFICATE_DECISIONS); | 259 reset_decisions_label_->set_id(STYLED_LABEL_RESET_CERTIFICATE_DECISIONS); |
| 260 gfx::Range link_range(offsets[1], text.length()); | 260 gfx::Range link_range(offsets[1], text.length()); |
| 261 | 261 |
| 262 views::StyledLabel::RangeStyleInfo link_style = | 262 views::StyledLabel::RangeStyleInfo link_style = |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 PageInfo::PAGE_INFO_CONNECTION_HELP_OPENED); | 747 PageInfo::PAGE_INFO_CONNECTION_HELP_OPENED); |
| 748 break; | 748 break; |
| 749 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS: | 749 case STYLED_LABEL_RESET_CERTIFICATE_DECISIONS: |
| 750 presenter_->OnRevokeSSLErrorBypassButtonPressed(); | 750 presenter_->OnRevokeSSLErrorBypassButtonPressed(); |
| 751 GetWidget()->Close(); | 751 GetWidget()->Close(); |
| 752 break; | 752 break; |
| 753 default: | 753 default: |
| 754 NOTREACHED(); | 754 NOTREACHED(); |
| 755 } | 755 } |
| 756 } | 756 } |
| OLD | NEW |