OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/webui/chromeos/network_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chromeos/network/network_configuration_handler.h" | 21 #include "chromeos/network/network_configuration_handler.h" |
22 #include "chromeos/network/network_state.h" | 22 #include "chromeos/network/network_state.h" |
23 #include "chromeos/network/network_state_handler.h" | 23 #include "chromeos/network/network_state_handler.h" |
24 #include "components/device_event_log/device_event_log.h" | 24 #include "components/device_event_log/device_event_log.h" |
25 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
26 #include "content/public/browser/web_ui.h" | 26 #include "content/public/browser/web_ui.h" |
27 #include "content/public/browser/web_ui_data_source.h" | 27 #include "content/public/browser/web_ui_data_source.h" |
28 #include "content/public/browser/web_ui_message_handler.h" | 28 #include "content/public/browser/web_ui_message_handler.h" |
29 #include "third_party/cros_system_api/dbus/service_constants.h" | 29 #include "third_party/cros_system_api/dbus/service_constants.h" |
30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/chromeos/strings/grit/ui_chromeos_strings.h" | |
32 | 31 |
33 namespace chromeos { | 32 namespace chromeos { |
34 | 33 |
35 namespace { | 34 namespace { |
36 | 35 |
37 bool GetServicePathFromGuid(const std::string& guid, | 36 bool GetServicePathFromGuid(const std::string& guid, |
38 std::string* service_path) { | 37 std::string* service_path) { |
39 const NetworkState* network = | 38 const NetworkState* network = |
40 NetworkHandler::Get()->network_state_handler()->GetNetworkStateFromGuid( | 39 NetworkHandler::Get()->network_state_handler()->GetNetworkStateFromGuid( |
41 guid); | 40 guid); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 html->SetDefaultResource(IDR_NETWORK_UI_HTML); | 221 html->SetDefaultResource(IDR_NETWORK_UI_HTML); |
223 | 222 |
224 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), | 223 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), |
225 html); | 224 html); |
226 } | 225 } |
227 | 226 |
228 NetworkUI::~NetworkUI() { | 227 NetworkUI::~NetworkUI() { |
229 } | 228 } |
230 | 229 |
231 } // namespace chromeos | 230 } // namespace chromeos |
OLD | NEW |