| 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/website_settings/website_settings_infobar_delegate.h
" | 5 #include "chrome/browser/ui/website_settings/website_settings_infobar_delegate.h
" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/infobars/infobar_tab_helper.h" | 9 #include "chrome/browser/infobars/infobar_tab_helper.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 return BUTTON_OK; | 35 return BUTTON_OK; |
| 36 } | 36 } |
| 37 | 37 |
| 38 string16 WebsiteSettingsInfobarDelegate::GetButtonLabel( | 38 string16 WebsiteSettingsInfobarDelegate::GetButtonLabel( |
| 39 InfoBarButton button) const { | 39 InfoBarButton button) const { |
| 40 DCHECK_EQ(BUTTON_OK, button); | 40 DCHECK_EQ(BUTTON_OK, button); |
| 41 return l10n_util::GetStringUTF16(IDS_WEBSITE_SETTINGS_INFOBAR_BUTTON); | 41 return l10n_util::GetStringUTF16(IDS_WEBSITE_SETTINGS_INFOBAR_BUTTON); |
| 42 } | 42 } |
| 43 | 43 |
| 44 bool WebsiteSettingsInfobarDelegate::Accept() { | 44 bool WebsiteSettingsInfobarDelegate::Accept() { |
| 45 owner()->web_contents()->GetController().Reload(true); | 45 owner()->GetWebContents()->GetController().Reload(true); |
| 46 return true; | 46 return true; |
| 47 } | 47 } |
| OLD | NEW |