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

Side by Side Diff: chrome/browser/ui/collected_cookies_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) 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698