OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/mobile_setup_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
15 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/message_loop.h" |
18 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
19 #include "base/string_piece.h" | 20 #include "base/string_piece.h" |
20 #include "base/string_util.h" | 21 #include "base/string_util.h" |
21 #include "base/timer.h" | 22 #include "base/timer.h" |
22 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
23 #include "base/values.h" | 24 #include "base/values.h" |
24 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/chromeos/cros/cros_library.h" | 26 #include "chrome/browser/chromeos/cros/cros_library.h" |
26 #include "chrome/browser/chromeos/cros/network_library.h" | 27 #include "chrome/browser/chromeos/cros/network_library.h" |
27 #include "chrome/browser/prefs/pref_service.h" | 28 #include "chrome/browser/prefs/pref_service.h" |
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1406 // Set up the chrome://mobilesetup/ source. | 1407 // Set up the chrome://mobilesetup/ source. |
1407 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); | 1408 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); |
1408 profile->GetChromeURLDataManager()->AddDataSource(html_source); | 1409 profile->GetChromeURLDataManager()->AddDataSource(html_source); |
1409 } | 1410 } |
1410 | 1411 |
1411 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) { | 1412 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) { |
1412 ChromeWebUI::RenderViewCreated(host); | 1413 ChromeWebUI::RenderViewCreated(host); |
1413 // Destroyed by the corresponding RenderViewHost. | 1414 // Destroyed by the corresponding RenderViewHost. |
1414 new PortalFrameLoadObserver(host, tab_contents()->web_ui()); | 1415 new PortalFrameLoadObserver(host, tab_contents()->web_ui()); |
1415 } | 1416 } |
OLD | NEW |