Chromium Code Reviews| 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 "chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h" | |
| 6 | |
| 7 #include "chrome/browser/infobars/infobar_service.h" | |
| 8 #include "components/infobars/core/infobar.h" | |
| 9 #include "content/public/browser/web_contents.h" | |
| 10 | |
| 11 // static | |
| 12 void DataReductionProxyInfoBarDelegate::Create( | |
| 13 content::WebContents* web_contents) { | |
| 14 InfoBarService::FromWebContents(web_contents)->AddInfoBar( | |
| 15 DataReductionProxyInfoBarDelegate::CreateInfoBar( | |
| 16 scoped_ptr<DataReductionProxyInfoBarDelegate>( | |
| 17 new DataReductionProxyInfoBarDelegate()))); | |
| 18 } | |
| 19 | |
| 20 DataReductionProxyInfoBarDelegate::~DataReductionProxyInfoBarDelegate() { | |
| 21 } | |
| 22 | |
| 23 DataReductionProxyInfoBarDelegate::DataReductionProxyInfoBarDelegate() | |
| 24 : ConfirmInfoBarDelegate() { | |
| 25 } | |
| 26 | |
| 27 bool DataReductionProxyInfoBarDelegate::ShouldExpire( | |
| 28 const NavigationDetails& details) const { | |
| 29 return false; | |
| 30 } | |
| 31 | |
| 32 base::string16 DataReductionProxyInfoBarDelegate::GetMessageText() const { | |
| 33 return base::string16(); | |
| 34 } | |
| 35 | |
| 36 int DataReductionProxyInfoBarDelegate::GetButtons() const { | |
| 37 return BUTTON_NONE; | |
| 38 } | |
| 39 | |
| 40 | |
|
marq (ping after 24h)
2014/07/11 16:16:11
Spurious newline.
bengr
2014/07/11 21:39:42
Done.
| |
| OLD | NEW |