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

Unified Diff: chrome/browser/chromeos/net/network_throttling_observer.h

Issue 2463023002: Revert of Add network throttling as an enterprise policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted by hand 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: chrome/browser/chromeos/net/network_throttling_observer.h
diff --git a/chrome/browser/chromeos/net/network_throttling_observer.h b/chrome/browser/chromeos/net/network_throttling_observer.h
deleted file mode 100644
index 744065766b39d24636f5634c0b3062ece04485e9..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/net/network_throttling_observer.h
+++ /dev/null
@@ -1,42 +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.
-
-#ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_THROTTLING_OBSERVER_H_
-#define CHROME_BROWSER_CHROMEOS_NET_NETWORK_THROTTLING_OBSERVER_H_
-
-#include <string>
-
-#include "base/memory/weak_ptr.h"
-#include "components/prefs/pref_change_registrar.h"
-
-class PrefRegistrySimple;
-class Profile;
-
-namespace chromeos {
-
-// NetworkThrottlingObserver is a singleton, owned by
-// ChromeBrowserMainPartsChromeos.
-// This class is responsible for propagating network bandwidth throttling policy
-// changes (prefs::kNetworkThrottlingEnabled) in Chrome down to Shill which
-// implements by calling 'tc' in the kernel.
-class NetworkThrottlingObserver {
- public:
- explicit NetworkThrottlingObserver(PrefService* local_state);
- ~NetworkThrottlingObserver();
-
- static void RegisterPrefs(PrefRegistrySimple* registry);
-
- private:
- // Callback used when prefs::kNetworkThrottlingEnabled changes
- void OnPreferenceChanged(const std::string& pref_name);
-
- PrefService* local_state_;
- PrefChangeRegistrar pref_change_registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkThrottlingObserver);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_THROTTLING_OBSERVER_H_
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | chrome/browser/chromeos/net/network_throttling_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698