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/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 "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 29 matching lines...) Expand all Loading... |
40 return BUTTON_OK; | 40 return BUTTON_OK; |
41 } | 41 } |
42 | 42 |
43 string16 CollectedCookiesInfoBarDelegate::GetButtonLabel( | 43 string16 CollectedCookiesInfoBarDelegate::GetButtonLabel( |
44 InfoBarButton button) const { | 44 InfoBarButton button) const { |
45 DCHECK_EQ(BUTTON_OK, button); | 45 DCHECK_EQ(BUTTON_OK, button); |
46 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_BUTTON); | 46 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_BUTTON); |
47 } | 47 } |
48 | 48 |
49 bool CollectedCookiesInfoBarDelegate::Accept() { | 49 bool CollectedCookiesInfoBarDelegate::Accept() { |
50 owner()->GetWebContents()->GetController().Reload(true); | 50 owner()->web_contents()->GetController().Reload(true); |
51 return true; | 51 return true; |
52 } | 52 } |
OLD | NEW |