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

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: Rebasing Created 5 years 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 std::string ObsoleteSystemInfoBarDelegate::GetIdentifier() const {
32 return "ObsoleteSystemInfoBarDelegate";
33 }
34
31 base::string16 ObsoleteSystemInfoBarDelegate::GetMessageText() const { 35 base::string16 ObsoleteSystemInfoBarDelegate::GetMessageText() const {
32 return ObsoleteSystem::LocalizedObsoleteString(); 36 return ObsoleteSystem::LocalizedObsoleteString();
33 } 37 }
34 38
35 int ObsoleteSystemInfoBarDelegate::GetButtons() const { 39 int ObsoleteSystemInfoBarDelegate::GetButtons() const {
36 return BUTTON_NONE; 40 return BUTTON_NONE;
37 } 41 }
38 42
39 base::string16 ObsoleteSystemInfoBarDelegate::GetLinkText() const { 43 base::string16 ObsoleteSystemInfoBarDelegate::GetLinkText() const {
40 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); 44 return l10n_util::GetStringUTF16(IDS_LEARN_MORE);
41 } 45 }
42 46
43 GURL ObsoleteSystemInfoBarDelegate::GetLinkURL() const { 47 GURL ObsoleteSystemInfoBarDelegate::GetLinkURL() const {
44 return GURL(ObsoleteSystem::GetLinkURL()); 48 return GURL(ObsoleteSystem::GetLinkURL());
45 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698