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

Side by Side Diff: chrome/browser/ui/collected_cookies_infobar_delegate.cc

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 years, 4 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_tab_helper.h" 8 #include "chrome/browser/infobars/infobar_tab_helper.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 23 matching lines...) Expand all
34 return BUTTON_OK; 34 return BUTTON_OK;
35 } 35 }
36 36
37 string16 CollectedCookiesInfoBarDelegate::GetButtonLabel( 37 string16 CollectedCookiesInfoBarDelegate::GetButtonLabel(
38 InfoBarButton button) const { 38 InfoBarButton button) const {
39 DCHECK_EQ(BUTTON_OK, button); 39 DCHECK_EQ(BUTTON_OK, button);
40 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_BUTTON); 40 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_BUTTON);
41 } 41 }
42 42
43 bool CollectedCookiesInfoBarDelegate::Accept() { 43 bool CollectedCookiesInfoBarDelegate::Accept() {
44 owner()->web_contents()->GetController().Reload(true); 44 owner()->GetWebContents()->GetController().Reload(true);
45 return true; 45 return true;
46 } 46 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/collected_cookies_infobar_delegate.h ('k') | chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698