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

Unified Diff: components/offline_pages/background/network_quality_provider_stub.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: more rebase Created 4 years, 1 month 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: components/offline_pages/background/network_quality_provider_stub.cc
diff --git a/components/offline_pages/background/network_quality_provider_stub.cc b/components/offline_pages/background/network_quality_provider_stub.cc
deleted file mode 100644
index 015faf59d5c2bfa20e5bf537f3aefd61133caede..0000000000000000000000000000000000000000
--- a/components/offline_pages/background/network_quality_provider_stub.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2016 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 "components/offline_pages/background/network_quality_provider_stub.h"
-
-namespace offline_pages {
-
-const char kOfflineNQPKey[] = "OfflineNQP";
-
-NetworkQualityProviderStub::NetworkQualityProviderStub()
- : connection_type_(
- net::EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_3G) {}
-
-NetworkQualityProviderStub::~NetworkQualityProviderStub() {}
-
-// static
-NetworkQualityProviderStub* NetworkQualityProviderStub::GetUserData(
- base::SupportsUserData* supports_user_data) {
- return static_cast<NetworkQualityProviderStub*>(
- supports_user_data->GetUserData(&kOfflineNQPKey));
-}
-
-// static
-void NetworkQualityProviderStub::SetUserData(
- base::SupportsUserData* supports_user_data,
- NetworkQualityProviderStub* stub) {
- DCHECK(supports_user_data);
- DCHECK(stub);
- supports_user_data->SetUserData(&kOfflineNQPKey, stub);
-}
-
-void NetworkQualityProviderStub::AddEffectiveConnectionTypeObserver(
- net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer) {}
-
-void NetworkQualityProviderStub::RemoveEffectiveConnectionTypeObserver(
- net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer) {}
-
-net::EffectiveConnectionType
-NetworkQualityProviderStub::GetEffectiveConnectionType() const {
- return connection_type_;
-}
-} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698