| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/choose_mobile_network_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 19 #include "chromeos/network/device_state.h" | 19 #include "chromeos/network/device_state.h" |
| 20 #include "chromeos/network/network_device_handler.h" | 20 #include "chromeos/network/network_device_handler.h" |
| 21 #include "chromeos/network/network_event_log.h" | 21 #include "chromeos/network/network_event_log.h" |
| 22 #include "chromeos/network/network_state_handler.h" | 22 #include "chromeos/network/network_state_handler.h" |
| 23 #include "chromeos/network/network_state_handler_observer.h" | 23 #include "chromeos/network/network_state_handler_observer.h" |
| 24 #include "chromeos/network/shill_property_util.h" | |
| 25 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
| 26 #include "content/public/browser/web_ui.h" | 25 #include "content/public/browser/web_ui.h" |
| 27 #include "content/public/browser/web_ui_data_source.h" | 26 #include "content/public/browser/web_ui_data_source.h" |
| 28 #include "content/public/browser/web_ui_message_handler.h" | 27 #include "content/public/browser/web_ui_message_handler.h" |
| 29 #include "grit/browser_resources.h" | 28 #include "grit/browser_resources.h" |
| 30 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
| 31 #include "third_party/cros_system_api/dbus/service_constants.h" | 30 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 32 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
| 33 #include "ui/base/resource/resource_bundle.h" | 32 #include "ui/base/resource/resource_bundle.h" |
| 34 | 33 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 : WebUIController(web_ui) { | 259 : WebUIController(web_ui) { |
| 261 ChooseMobileNetworkHandler* handler = new ChooseMobileNetworkHandler(); | 260 ChooseMobileNetworkHandler* handler = new ChooseMobileNetworkHandler(); |
| 262 web_ui->AddMessageHandler(handler); | 261 web_ui->AddMessageHandler(handler); |
| 263 // Set up the "chrome://choose-mobile-network" source. | 262 // Set up the "chrome://choose-mobile-network" source. |
| 264 Profile* profile = Profile::FromWebUI(web_ui); | 263 Profile* profile = Profile::FromWebUI(web_ui); |
| 265 content::WebUIDataSource::Add( | 264 content::WebUIDataSource::Add( |
| 266 profile, CreateChooseMobileNetworkUIHTMLSource()); | 265 profile, CreateChooseMobileNetworkUIHTMLSource()); |
| 267 } | 266 } |
| 268 | 267 |
| 269 } // namespace chromeos | 268 } // namespace chromeos |
| OLD | NEW |