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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc

Issue 2000433002: Remove unused DataReductionProxyInfoBar and related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc
deleted file mode 100644
index 4e24c0463b4a663fa4a4c6e7dac65c1824c19300..0000000000000000000000000000000000000000
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.h"
-
-#include <memory>
-
-#include "chrome/browser/infobars/infobar_service.h"
-#include "components/infobars/core/infobar.h"
-#include "components/infobars/core/infobar_delegate.h"
-#include "content/public/browser/web_contents.h"
-#include "grit/components_strings.h"
-#include "ui/base/l10n/l10n_util.h"
-#include "url/gurl.h"
-
-// static
-void DataReductionProxyInfoBarDelegateAndroid::Create(
- content::WebContents* web_contents,
- const std::string& link_url) {
- InfoBarService* infobar_service =
- InfoBarService::FromWebContents(web_contents);
- infobar_service->AddInfoBar(
- DataReductionProxyInfoBarDelegateAndroid::CreateInfoBar(
- infobar_service,
- std::unique_ptr<DataReductionProxyInfoBarDelegateAndroid>(
- new DataReductionProxyInfoBarDelegateAndroid(link_url))));
-}
-
-DataReductionProxyInfoBarDelegateAndroid::
- ~DataReductionProxyInfoBarDelegateAndroid() {}
-
-DataReductionProxyInfoBarDelegateAndroid::
- DataReductionProxyInfoBarDelegateAndroid(const std::string& link_url)
- : ConfirmInfoBarDelegate(), link_url_(link_url) {}
-
-infobars::InfoBarDelegate::InfoBarIdentifier
-DataReductionProxyInfoBarDelegateAndroid::GetIdentifier() const {
- return DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_ANDROID;
-}
-
-bool DataReductionProxyInfoBarDelegateAndroid::ShouldExpire(
- const NavigationDetails& details) const {
- return false;
-}
-
-base::string16 DataReductionProxyInfoBarDelegateAndroid::GetMessageText()
- const {
- return base::string16();
-}
-
-int DataReductionProxyInfoBarDelegateAndroid::GetButtons() const {
- return BUTTON_NONE;
-}
-
-GURL DataReductionProxyInfoBarDelegateAndroid::GetLinkURL() const {
- return GURL(link_url_);
-}
-
-bool DataReductionProxyInfoBarDelegateAndroid::LinkClicked(
- WindowOpenDisposition disposition) {
- ConfirmInfoBarDelegate::LinkClicked(disposition);
- return true;
-}

Powered by Google App Engine
This is Rietveld 408576698