| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/collected_cookies_infobar_delegate.h" | 5 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/browser/tab_contents/tab_contents.h" | 8 #include "content/browser/tab_contents/tab_contents.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 10 #include "grit/theme_resources_standard.h" | 10 #include "grit/theme_resources_standard.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 } | 27 } |
| 28 | 28 |
| 29 string16 CollectedCookiesInfoBarDelegate::GetMessageText() const { | 29 string16 CollectedCookiesInfoBarDelegate::GetMessageText() const { |
| 30 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_MESSAGE); | 30 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_MESSAGE); |
| 31 } | 31 } |
| 32 | 32 |
| 33 int CollectedCookiesInfoBarDelegate::GetButtons() const { | 33 int CollectedCookiesInfoBarDelegate::GetButtons() const { |
| 34 return BUTTON_OK; | 34 return BUTTON_OK; |
| 35 } | 35 } |
| 36 | 36 |
| 37 string16 CollectedCookiesInfoBarDelegate::GetButtonLabel(InfoBarButton button) | 37 string16 CollectedCookiesInfoBarDelegate::GetButtonLabel( |
| 38 const { | 38 InfoBarButton button) const { |
| 39 DCHECK_EQ(BUTTON_OK, button); | 39 DCHECK_EQ(BUTTON_OK, button); |
| 40 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_BUTTON); | 40 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_BUTTON); |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool CollectedCookiesInfoBarDelegate::Accept() { | 43 bool CollectedCookiesInfoBarDelegate::Accept() { |
| 44 tab_contents_->controller().Reload(true); | 44 tab_contents_->controller().Reload(true); |
| 45 return true; | 45 return true; |
| 46 } | 46 } |
| OLD | NEW |