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

Side by Side Diff: components/infobars/core/simple_alert_infobar_delegate.cc

Issue 1142153002: Simplify infobar expiry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android compile Created 5 years, 7 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
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 "components/infobars/core/simple_alert_infobar_delegate.h" 5 #include "components/infobars/core/simple_alert_infobar_delegate.h"
6 6
7 #include "components/infobars/core/infobar.h" 7 #include "components/infobars/core/infobar.h"
8 #include "components/infobars/core/infobar_manager.h" 8 #include "components/infobars/core/infobar_manager.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 10
(...skipping 18 matching lines...) Expand all
29 auto_expire_(auto_expire) { 29 auto_expire_(auto_expire) {
30 } 30 }
31 31
32 SimpleAlertInfoBarDelegate::~SimpleAlertInfoBarDelegate() { 32 SimpleAlertInfoBarDelegate::~SimpleAlertInfoBarDelegate() {
33 } 33 }
34 34
35 int SimpleAlertInfoBarDelegate::GetIconID() const { 35 int SimpleAlertInfoBarDelegate::GetIconID() const {
36 return icon_id_; 36 return icon_id_;
37 } 37 }
38 38
39 bool SimpleAlertInfoBarDelegate::ShouldExpireInternal( 39 bool SimpleAlertInfoBarDelegate::ShouldExpire(
40 const NavigationDetails& details) const { 40 const NavigationDetails& details) const {
41 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details); 41 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpire(details);
42 } 42 }
43 43
44 base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const { 44 base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const {
45 return message_; 45 return message_;
46 } 46 }
47 47
48 int SimpleAlertInfoBarDelegate::GetButtons() const { 48 int SimpleAlertInfoBarDelegate::GetButtons() const {
49 return BUTTON_NONE; 49 return BUTTON_NONE;
50 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698