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

Unified Diff: components/arc/net/arc_net_host_impl.cc

Issue 1885683005: Add module suffix in .mojom files for components/arc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 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
« no previous file with comments | « components/arc/net/arc_net_host_impl.h ('k') | components/arc/power/arc_power_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/net/arc_net_host_impl.cc
diff --git a/components/arc/net/arc_net_host_impl.cc b/components/arc/net/arc_net_host_impl.cc
index afaec21d25b077b0468414179e2cd78428405ccf..b5f2ab7219cb53935e6a5e03066d3f79aeaf5c0f 100644
--- a/components/arc/net/arc_net_host_impl.cc
+++ b/components/arc/net/arc_net_host_impl.cc
@@ -48,7 +48,7 @@ ArcNetHostImpl::~ArcNetHostImpl() {
void ArcNetHostImpl::OnNetInstanceReady() {
DCHECK(thread_checker_.CalledOnValidThread());
- NetHostPtr host;
+ mojom::NetHostPtr host;
binding_.Bind(GetProxy(&host));
arc_bridge_service()->net_instance()->Init(std::move(host));
}
@@ -64,22 +64,23 @@ void ArcNetHostImpl::GetNetworksDeprecated(
return;
}
- GetNetworksRequestType type = GetNetworksRequestType::CONFIGURED_ONLY;
+ mojom::GetNetworksRequestType type =
+ mojom::GetNetworksRequestType::CONFIGURED_ONLY;
if (visible_only) {
- type = GetNetworksRequestType::VISIBLE_ONLY;
+ type = mojom::GetNetworksRequestType::VISIBLE_ONLY;
}
GetNetworks(type, callback);
}
-void ArcNetHostImpl::GetNetworks(GetNetworksRequestType type,
+void ArcNetHostImpl::GetNetworks(mojom::GetNetworksRequestType type,
const GetNetworksCallback& callback) {
DCHECK(thread_checker_.CalledOnValidThread());
- NetworkDataPtr data = NetworkData::New();
+ mojom::NetworkDataPtr data = mojom::NetworkData::New();
bool configured_only = true;
bool visible_only = false;
- if (type == GetNetworksRequestType::VISIBLE_ONLY) {
+ if (type == mojom::GetNetworksRequestType::VISIBLE_ONLY) {
configured_only = false;
visible_only = true;
}
@@ -96,10 +97,10 @@ void ArcNetHostImpl::GetNetworks(GetNetworksRequestType type,
// Even if there's no WiFi, an empty (size=0) list must be returned and not a
// null one. The explicitly sized New() constructor ensures the non-null
// property.
- mojo::Array<WifiConfigurationPtr> networks =
- mojo::Array<WifiConfigurationPtr>::New(0);
+ mojo::Array<mojom::WifiConfigurationPtr> networks =
+ mojo::Array<mojom::WifiConfigurationPtr>::New(0);
for (base::Value* value : *network_properties_list) {
- WifiConfigurationPtr wc = WifiConfiguration::New();
+ mojom::WifiConfigurationPtr wc = mojom::WifiConfiguration::New();
base::DictionaryValue* network_dict = nullptr;
value->GetAsDictionary(&network_dict);
« no previous file with comments | « components/arc/net/arc_net_host_impl.h ('k') | components/arc/power/arc_power_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698