Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Side by Side Diff: chrome/browser/ui/content_settings/content_setting_changed_infobar_delegate.cc

Issue 14241006: Eliminate InfoBarTabHelper. Make InfoBarService a concrete class. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698