OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/logging.h" | |
6 #include "base/memory/scoped_ptr.h" | |
7 #include "components/infobars/core/confirm_infobar_delegate.h" | |
8 #include "components/infobars/core/infobar.h" | |
9 | |
10 // Provides definitions of static variables and functions that are declared in | |
11 // the component but defined in the embedder. | |
12 // TODO(blundell): The component shouldn't be declaring statics that it's not | |
13 // defining; instead, this information should be obtained via a client, | |
14 // which can have a test implementation. crbug.com/386171 | |
15 | |
16 // Some components' unittests exercise code that requires that | |
17 // ConfirmInfoBarDelegate::CreateInfoBar() return a non-NULL infobar. | |
18 scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar( | |
19 scoped_ptr<ConfirmInfoBarDelegate> delegate) { | |
20 return scoped_ptr<infobars::InfoBar>(new infobars::InfoBar(delegate.Pass())); | |
21 } | |
OLD | NEW |