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

Side by Side Diff: chrome/browser/api/infobars/confirm_infobar_delegate.cc

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. 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/tab_contents/confirm_infobar_delegate.h" 5 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h"
6 6
7 #include "content/public/browser/navigation_details.h" 7 #include "content/public/browser/navigation_details.h"
8 #include "grit/generated_resources.h" 8 #include "grit/generated_resources.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 10
11 InfoBarDelegate::InfoBarAutomationType 11 InfoBarDelegate::InfoBarAutomationType
12 ConfirmInfoBarDelegate::GetInfoBarAutomationType() const { 12 ConfirmInfoBarDelegate::GetInfoBarAutomationType() const {
13 return CONFIRM_INFOBAR; 13 return CONFIRM_INFOBAR;
14 } 14 }
15 15
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 bool ConfirmInfoBarDelegate::ShouldExpireInternal( 58 bool ConfirmInfoBarDelegate::ShouldExpireInternal(
59 const content::LoadCommittedDetails& details) const { 59 const content::LoadCommittedDetails& details) const {
60 return !details.did_replace_entry && 60 return !details.did_replace_entry &&
61 InfoBarDelegate::ShouldExpireInternal(details); 61 InfoBarDelegate::ShouldExpireInternal(details);
62 } 62 }
63 63
64 ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() { 64 ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() {
65 return this; 65 return this;
66 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698