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

Unified Diff: ash/system/chromeos/network/network_observer.cc

Issue 23075012: Update NetworkStateNotifier to use message_center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Track deafult_network and reset did_show_out_of_credits on any change Created 7 years, 4 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: ash/system/chromeos/network/network_observer.cc
diff --git a/ash/system/chromeos/network/network_observer.cc b/ash/system/chromeos/network/network_observer.cc
deleted file mode 100644
index 09f4f45c497b8c88f719ee3408b62685e67066b5..0000000000000000000000000000000000000000
--- a/ash/system/chromeos/network/network_observer.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2013 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 "ash/system/chromeos/network/network_observer.h"
-
-#include "chromeos/network/network_state.h"
-#include "third_party/cros_system_api/dbus/service_constants.h"
-
-namespace ash {
-
-//static
-NetworkObserver::NetworkType NetworkObserver::GetNetworkTypeForNetworkState(
- const chromeos::NetworkState* network) {
- if (!network)
- return NETWORK_UNKNOWN;
- const std::string& type = network->type();
- if (type == flimflam::kTypeCellular) {
- const std::string& technology = network->network_technology();
- if (technology == flimflam::kNetworkTechnologyLte ||
- technology == flimflam::kNetworkTechnologyLteAdvanced)
- return NETWORK_CELLULAR_LTE;
- else
- return NETWORK_CELLULAR;
- }
- if (type == flimflam::kTypeEthernet)
- return NETWORK_ETHERNET;
- if (type == flimflam::kTypeWifi)
- return NETWORK_WIFI;
- if (type == flimflam::kTypeBluetooth)
- return NETWORK_BLUETOOTH;
- return NETWORK_UNKNOWN;
-}
-
-} // namespace ash
« no previous file with comments | « ash/system/chromeos/network/network_observer.h ('k') | ash/system/chromeos/network/network_state_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698