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/sim_unlock_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
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/memory/ref_counted_memory.h" | 14 #include "base/memory/ref_counted_memory.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/strings/string_piece.h" | 17 #include "base/strings/string_piece.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/browser/chrome_notification_types.h" | 19 #include "chrome/browser/chrome_notification_types.h" |
20 #include "chrome/browser/chromeos/sim_dialog_delegate.h" | 20 #include "chrome/browser/chromeos/sim_dialog_delegate.h" |
21 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
22 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
23 #include "chromeos/network/device_state.h" | 23 #include "chromeos/network/device_state.h" |
24 #include "chromeos/network/network_device_handler.h" | 24 #include "chromeos/network/network_device_handler.h" |
25 #include "chromeos/network/network_event_log.h" | 25 #include "chromeos/network/network_event_log.h" |
26 #include "chromeos/network/network_state_handler.h" | 26 #include "chromeos/network/network_state_handler.h" |
27 #include "chromeos/network/network_state_handler_observer.h" | 27 #include "chromeos/network/network_state_handler_observer.h" |
28 #include "chromeos/network/shill_property_util.h" | |
29 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
30 #include "content/public/browser/notification_service.h" | 29 #include "content/public/browser/notification_service.h" |
31 #include "content/public/browser/url_data_source.h" | 30 #include "content/public/browser/url_data_source.h" |
32 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
33 #include "content/public/browser/web_ui.h" | 32 #include "content/public/browser/web_ui.h" |
34 #include "content/public/browser/web_ui_message_handler.h" | 33 #include "content/public/browser/web_ui_message_handler.h" |
35 #include "grit/browser_resources.h" | 34 #include "grit/browser_resources.h" |
36 #include "grit/generated_resources.h" | 35 #include "grit/generated_resources.h" |
37 #include "third_party/cros_system_api/dbus/service_constants.h" | 36 #include "third_party/cros_system_api/dbus/service_constants.h" |
38 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 SimUnlockHandler* handler = new SimUnlockHandler(); | 828 SimUnlockHandler* handler = new SimUnlockHandler(); |
830 web_ui->AddMessageHandler(handler); | 829 web_ui->AddMessageHandler(handler); |
831 SimUnlockUIHTMLSource* html_source = new SimUnlockUIHTMLSource(); | 830 SimUnlockUIHTMLSource* html_source = new SimUnlockUIHTMLSource(); |
832 | 831 |
833 // Set up the chrome://sim-unlock/ source. | 832 // Set up the chrome://sim-unlock/ source. |
834 Profile* profile = Profile::FromWebUI(web_ui); | 833 Profile* profile = Profile::FromWebUI(web_ui); |
835 content::URLDataSource::Add(profile, html_source); | 834 content::URLDataSource::Add(profile, html_source); |
836 } | 835 } |
837 | 836 |
838 } // namespace chromeos | 837 } // namespace chromeos |
OLD | NEW |