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

Side by Side Diff: components/metrics/net/wifi_access_point_info_provider_chromeos.cc

Issue 636363004: Make remaining parts of components/metrics use metrics namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cros compile Created 6 years, 2 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/metrics/net/wifi_access_point_info_provider_chromeos.h" 5 #include "components/metrics/net/wifi_access_point_info_provider_chromeos.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "chromeos/network/network_configuration_handler.h" 10 #include "chromeos/network/network_configuration_handler.h"
11 #include "chromeos/network/network_handler.h" 11 #include "chromeos/network/network_handler.h"
12 #include "chromeos/network/network_state.h" 12 #include "chromeos/network/network_state.h"
13 #include "chromeos/network/network_state_handler.h" 13 #include "chromeos/network/network_state_handler.h"
14 #include "chromeos/network/shill_property_util.h" 14 #include "chromeos/network/shill_property_util.h"
15 #include "third_party/cros_system_api/dbus/service_constants.h" 15 #include "third_party/cros_system_api/dbus/service_constants.h"
16 16
17 using chromeos::NetworkHandler; 17 using chromeos::NetworkHandler;
18 18
19 namespace metrics {
20
19 WifiAccessPointInfoProviderChromeos::WifiAccessPointInfoProviderChromeos() { 21 WifiAccessPointInfoProviderChromeos::WifiAccessPointInfoProviderChromeos() {
20 NetworkHandler::Get()->network_state_handler()->AddObserver(this, FROM_HERE); 22 NetworkHandler::Get()->network_state_handler()->AddObserver(this, FROM_HERE);
21 23
22 // Update initial connection state. 24 // Update initial connection state.
23 DefaultNetworkChanged( 25 DefaultNetworkChanged(
24 NetworkHandler::Get()->network_state_handler()->DefaultNetwork()); 26 NetworkHandler::Get()->network_state_handler()->DefaultNetwork());
25 } 27 }
26 28
27 WifiAccessPointInfoProviderChromeos::~WifiAccessPointInfoProviderChromeos() { 29 WifiAccessPointInfoProviderChromeos::~WifiAccessPointInfoProviderChromeos() {
28 NetworkHandler::Get()->network_state_handler()->RemoveObserver(this, 30 NetworkHandler::Get()->network_state_handler()->RemoveObserver(this,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 &wifi_access_point_info_.model_number); 111 &wifi_access_point_info_.model_number);
110 vendor_dict->GetStringWithoutPathExpansion( 112 vendor_dict->GetStringWithoutPathExpansion(
111 shill::kVendorWPSModelNameProperty, 113 shill::kVendorWPSModelNameProperty,
112 &wifi_access_point_info_.model_name); 114 &wifi_access_point_info_.model_name);
113 vendor_dict->GetStringWithoutPathExpansion( 115 vendor_dict->GetStringWithoutPathExpansion(
114 shill::kVendorWPSDeviceNameProperty, 116 shill::kVendorWPSDeviceNameProperty,
115 &wifi_access_point_info_.device_name); 117 &wifi_access_point_info_.device_name);
116 vendor_dict->GetStringWithoutPathExpansion(shill::kVendorOUIListProperty, 118 vendor_dict->GetStringWithoutPathExpansion(shill::kVendorOUIListProperty,
117 &wifi_access_point_info_.oui_list); 119 &wifi_access_point_info_.oui_list);
118 } 120 }
121
122 } // namespace metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698