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

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

Issue 2022313002: UI for the Data Saver InfoBar Promo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@infobarPromo
Patch Set: dismiss on navigation Created 4 years, 6 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 2016 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_promo_infobar_delegate_and roid.h"
6
7 #include "chrome/browser/android/android_theme_resources.h"
8 #include "chrome/browser/infobars/infobar_service.h"
9 #include "components/infobars/core/infobar.h"
10 #include "components/infobars/core/infobar_delegate.h"
11 #include "content/public/browser/web_contents.h"
12 #include "grit/components_strings.h"
13 #include "ui/base/l10n/l10n_util.h"
14
15 // static
16 void DataReductionPromoInfoBarDelegateAndroid::Create(
17 content::WebContents* web_contents) {
18 InfoBarService* infobar_service =
19 InfoBarService::FromWebContents(web_contents);
20 infobar_service->AddInfoBar(
21 DataReductionPromoInfoBarDelegateAndroid::CreateInfoBar(
22 infobar_service,
23 std::unique_ptr<DataReductionPromoInfoBarDelegateAndroid>(
24 new DataReductionPromoInfoBarDelegateAndroid())));
25 }
26
27 DataReductionPromoInfoBarDelegateAndroid::
28 DataReductionPromoInfoBarDelegateAndroid()
29 : ConfirmInfoBarDelegate() {}
30
31 infobars::InfoBarDelegate::InfoBarIdentifier
32 DataReductionPromoInfoBarDelegateAndroid::GetIdentifier() const {
33 return DATA_REDUCTION_PROMO_INFOBAR_DELEGATE_ANDROID;
34 }
35
36 base::string16 DataReductionPromoInfoBarDelegateAndroid::GetMessageText()
37 const {
38 return base::string16();
39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698