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

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc

Issue 384853002: Add notification of data reduction proxy field trial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
(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.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698