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

Side by Side Diff: chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again Created 4 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
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/startup/obsolete_system_infobar_delegate.h" 5 #include "chrome/browser/ui/startup/obsolete_system_infobar_delegate.h"
6 6
7 #include "chrome/browser/infobars/infobar_service.h" 7 #include "chrome/browser/infobars/infobar_service.h"
8 #include "chrome/browser/obsolete_system/obsolete_system.h" 8 #include "chrome/browser/obsolete_system/obsolete_system.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "chrome/grit/chromium_strings.h" 10 #include "chrome/grit/chromium_strings.h"
(...skipping 10 matching lines...) Expand all
21 scoped_ptr<ConfirmInfoBarDelegate>(new ObsoleteSystemInfoBarDelegate()))); 21 scoped_ptr<ConfirmInfoBarDelegate>(new ObsoleteSystemInfoBarDelegate())));
22 } 22 }
23 23
24 ObsoleteSystemInfoBarDelegate::ObsoleteSystemInfoBarDelegate() 24 ObsoleteSystemInfoBarDelegate::ObsoleteSystemInfoBarDelegate()
25 : ConfirmInfoBarDelegate() { 25 : ConfirmInfoBarDelegate() {
26 } 26 }
27 27
28 ObsoleteSystemInfoBarDelegate::~ObsoleteSystemInfoBarDelegate() { 28 ObsoleteSystemInfoBarDelegate::~ObsoleteSystemInfoBarDelegate() {
29 } 29 }
30 30
31 infobars::InfoBarDelegate::InfoBarIdentifier
32 ObsoleteSystemInfoBarDelegate::GetIdentifier() const {
33 return OBSOLETE_SYSTEM_INFOBAR_DELEGATE;
34 }
35
31 base::string16 ObsoleteSystemInfoBarDelegate::GetMessageText() const { 36 base::string16 ObsoleteSystemInfoBarDelegate::GetMessageText() const {
32 return ObsoleteSystem::LocalizedObsoleteString(); 37 return ObsoleteSystem::LocalizedObsoleteString();
33 } 38 }
34 39
35 int ObsoleteSystemInfoBarDelegate::GetButtons() const { 40 int ObsoleteSystemInfoBarDelegate::GetButtons() const {
36 return BUTTON_NONE; 41 return BUTTON_NONE;
37 } 42 }
38 43
39 base::string16 ObsoleteSystemInfoBarDelegate::GetLinkText() const { 44 base::string16 ObsoleteSystemInfoBarDelegate::GetLinkText() const {
40 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); 45 return l10n_util::GetStringUTF16(IDS_LEARN_MORE);
41 } 46 }
42 47
43 GURL ObsoleteSystemInfoBarDelegate::GetLinkURL() const { 48 GURL ObsoleteSystemInfoBarDelegate::GetLinkURL() const {
44 return GURL(ObsoleteSystem::GetLinkURL()); 49 return GURL(ObsoleteSystem::GetLinkURL());
45 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698