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/register_page_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/chromeos/chromeos_version.h" | 11 #include "base/chromeos/chromeos_version.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
16 #include "base/string_piece.h" | 16 #include "base/string_piece.h" |
17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/chromeos/cros/cros_library.h" | 20 #include "chrome/browser/chromeos/cros/cros_library.h" |
21 #include "chrome/browser/chromeos/cros/network_library.h" | 21 #include "chrome/browser/chromeos/cros/network_library.h" |
22 #include "chrome/browser/chromeos/customization_document.h" | 22 #include "chrome/browser/chromeos/customization_document.h" |
23 #include "chrome/browser/chromeos/login/wizard_controller.h" | 23 #include "chrome/browser/chromeos/login/wizard_controller.h" |
24 #include "chrome/browser/chromeos/system/statistics_provider.h" | 24 #include "chrome/browser/chromeos/system/statistics_provider.h" |
25 #include "chrome/browser/chromeos/version_loader.h" | 25 #include "chrome/browser/chromeos/version_loader.h" |
26 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
| 27 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
27 #include "chrome/common/cancelable_task_tracker.h" | 28 #include "chrome/common/cancelable_task_tracker.h" |
28 #include "chrome/common/url_constants.h" | 29 #include "chrome/common/url_constants.h" |
29 #include "content/public/browser/url_data_source.h" | 30 #include "content/public/browser/url_data_source.h" |
30 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
31 #include "content/public/browser/web_ui.h" | 32 #include "content/public/browser/web_ui.h" |
32 #include "content/public/browser/web_ui_message_handler.h" | 33 #include "content/public/browser/web_ui_message_handler.h" |
33 #include "googleurl/src/gurl.h" | 34 #include "googleurl/src/gurl.h" |
34 #include "grit/browser_resources.h" | 35 #include "grit/browser_resources.h" |
35 #include "ui/base/resource/resource_bundle.h" | 36 #include "ui/base/resource/resource_bundle.h" |
36 | 37 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 RegisterPageUI::RegisterPageUI(content::WebUI* web_ui) | 290 RegisterPageUI::RegisterPageUI(content::WebUI* web_ui) |
290 : WebUIController(web_ui) { | 291 : WebUIController(web_ui) { |
291 RegisterPageHandler* handler = new RegisterPageHandler(); | 292 RegisterPageHandler* handler = new RegisterPageHandler(); |
292 web_ui->AddMessageHandler(handler); | 293 web_ui->AddMessageHandler(handler); |
293 RegisterPageUIHTMLSource* html_source = new RegisterPageUIHTMLSource(); | 294 RegisterPageUIHTMLSource* html_source = new RegisterPageUIHTMLSource(); |
294 | 295 |
295 // Set up the chrome://register/ source. | 296 // Set up the chrome://register/ source. |
296 Profile* profile = Profile::FromWebUI(web_ui); | 297 Profile* profile = Profile::FromWebUI(web_ui); |
297 ChromeURLDataManager::AddDataSource(profile, html_source); | 298 ChromeURLDataManager::AddDataSource(profile, html_source); |
298 } | 299 } |
OLD | NEW |