OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/content_settings/content_setting_changed_infobar_del
egate.h" | 5 #include "chrome/browser/ui/content_settings/content_setting_changed_infobar_del
egate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/infobars/infobar_service.h" | 8 #include "chrome/browser/infobars/infobar_service.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 return BUTTON_OK; | 52 return BUTTON_OK; |
53 } | 53 } |
54 | 54 |
55 string16 ContentSettingChangedInfoBarDelegate::GetButtonLabel( | 55 string16 ContentSettingChangedInfoBarDelegate::GetButtonLabel( |
56 InfoBarButton button) const { | 56 InfoBarButton button) const { |
57 DCHECK_EQ(BUTTON_OK, button); | 57 DCHECK_EQ(BUTTON_OK, button); |
58 return l10n_util::GetStringUTF16(IDS_CONTENT_SETTING_CHANGED_INFOBAR_BUTTON); | 58 return l10n_util::GetStringUTF16(IDS_CONTENT_SETTING_CHANGED_INFOBAR_BUTTON); |
59 } | 59 } |
60 | 60 |
61 bool ContentSettingChangedInfoBarDelegate::Accept() { | 61 bool ContentSettingChangedInfoBarDelegate::Accept() { |
62 owner()->GetWebContents()->GetController().Reload(true); | 62 owner()->web_contents()->GetController().Reload(true); |
63 return true; | 63 return true; |
64 } | 64 } |
OLD | NEW |