| 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 "components/infobars/core/confirm_infobar_delegate.h" | 5 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "grit/ui_strings.h" | |
| 8 #include "ui/base/l10n/l10n_util.h" | 7 #include "ui/base/l10n/l10n_util.h" |
| 8 #include "ui/strings/grit/ui_strings.h" |
| 9 | 9 |
| 10 using infobars::InfoBarDelegate; | 10 using infobars::InfoBarDelegate; |
| 11 | 11 |
| 12 ConfirmInfoBarDelegate::~ConfirmInfoBarDelegate() { | 12 ConfirmInfoBarDelegate::~ConfirmInfoBarDelegate() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 InfoBarDelegate::InfoBarAutomationType | 15 InfoBarDelegate::InfoBarAutomationType |
| 16 ConfirmInfoBarDelegate::GetInfoBarAutomationType() const { | 16 ConfirmInfoBarDelegate::GetInfoBarAutomationType() const { |
| 17 return CONFIRM_INFOBAR; | 17 return CONFIRM_INFOBAR; |
| 18 } | 18 } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 bool ConfirmInfoBarDelegate::EqualsDelegate(InfoBarDelegate* delegate) const { | 63 bool ConfirmInfoBarDelegate::EqualsDelegate(InfoBarDelegate* delegate) const { |
| 64 ConfirmInfoBarDelegate* confirm_delegate = | 64 ConfirmInfoBarDelegate* confirm_delegate = |
| 65 delegate->AsConfirmInfoBarDelegate(); | 65 delegate->AsConfirmInfoBarDelegate(); |
| 66 return confirm_delegate && | 66 return confirm_delegate && |
| 67 (confirm_delegate->GetMessageText() == GetMessageText()); | 67 (confirm_delegate->GetMessageText() == GetMessageText()); |
| 68 } | 68 } |
| 69 | 69 |
| 70 ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() { | 70 ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() { |
| 71 return this; | 71 return this; |
| 72 } | 72 } |
| OLD | NEW |