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

Side by Side Diff: components/arc/net/arc_net_host_impl.cc

Issue 1676913002: [mojo] Delete third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: let's try that again Created 4 years, 10 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
« no previous file with comments | « components/arc/input/arc_input_bridge.cc ('k') | components/contextual_search.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/arc/net/arc_net_host_impl.h" 5 #include "components/arc/net/arc_net_host_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/posix/eintr_wrapper.h" 11 #include "base/posix/eintr_wrapper.h"
12 #include "base/thread_task_runner_handle.h" 12 #include "base/thread_task_runner_handle.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "chromeos/network/network_handler.h" 14 #include "chromeos/network/network_handler.h"
15 #include "chromeos/network/network_state_handler.h" 15 #include "chromeos/network/network_state_handler.h"
16 #include "chromeos/network/network_util.h" 16 #include "chromeos/network/network_util.h"
17 #include "chromeos/network/onc/onc_utils.h" 17 #include "chromeos/network/onc/onc_utils.h"
18 #include "components/arc/arc_bridge_service.h" 18 #include "components/arc/arc_bridge_service.h"
19 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
20 19
21 namespace { 20 namespace {
22 21
23 const int kGetNetworksListLimit = 100; 22 const int kGetNetworksListLimit = 100;
24 23
25 } // namespace 24 } // namespace
26 25
27 namespace arc { 26 namespace arc {
28 27
29 ArcNetHostImpl::ArcNetHostImpl(ArcBridgeService* bridge_service) 28 ArcNetHostImpl::ArcNetHostImpl(ArcBridgeService* bridge_service)
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const GetWifiEnabledStateCallback& callback) { 101 const GetWifiEnabledStateCallback& callback) {
103 chromeos::NetworkStateHandler* handler = 102 chromeos::NetworkStateHandler* handler =
104 chromeos::NetworkHandler::Get()->network_state_handler(); 103 chromeos::NetworkHandler::Get()->network_state_handler();
105 bool is_enabled = 104 bool is_enabled =
106 handler->IsTechnologyEnabled(chromeos::NetworkTypePattern::WiFi()); 105 handler->IsTechnologyEnabled(chromeos::NetworkTypePattern::WiFi());
107 106
108 callback.Run(is_enabled); 107 callback.Run(is_enabled);
109 } 108 }
110 109
111 } // namespace arc 110 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/input/arc_input_bridge.cc ('k') | components/contextual_search.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698