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

Side by Side Diff: chrome/browser/tab_contents/confirm_infobar_delegate.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/tab_contents/confirm_infobar_delegate.h" 5 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
6 6
7 #include "content/browser/tab_contents/tab_contents.h"
8 #include "content/public/browser/navigation_details.h" 7 #include "content/public/browser/navigation_details.h"
9 #include "grit/generated_resources.h" 8 #include "grit/generated_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
11 10
12 int ConfirmInfoBarDelegate::GetButtons() const { 11 int ConfirmInfoBarDelegate::GetButtons() const {
13 return BUTTON_OK | BUTTON_CANCEL; 12 return BUTTON_OK | BUTTON_CANCEL;
14 } 13 }
15 14
16 string16 ConfirmInfoBarDelegate::GetButtonLabel(InfoBarButton button) const { 15 string16 ConfirmInfoBarDelegate::GetButtonLabel(InfoBarButton button) const {
17 return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_OK : IDS_CANCEL); 16 return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_OK : IDS_CANCEL);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool ConfirmInfoBarDelegate::ShouldExpire( 53 bool ConfirmInfoBarDelegate::ShouldExpire(
55 const content::LoadCommittedDetails& details) const { 54 const content::LoadCommittedDetails& details) const {
56 if (details.did_replace_entry) 55 if (details.did_replace_entry)
57 return false; 56 return false;
58 return InfoBarDelegate::ShouldExpire(details); 57 return InfoBarDelegate::ShouldExpire(details);
59 } 58 }
60 59
61 ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() { 60 ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() {
62 return this; 61 return this;
63 } 62 }
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_add_cert_handler.cc ('k') | chrome/browser/tab_contents/insecure_content_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698