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/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/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/ref_counted_memory.h" | 15 #include "base/memory/ref_counted_memory.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
19 #include "base/strings/string_piece.h" | 19 #include "base/strings/string_piece.h" |
20 #include "base/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "chrome/browser/chromeos/cros/cros_library.h" | 22 #include "chrome/browser/chromeos/cros/cros_library.h" |
23 #include "chrome/browser/chromeos/cros/network_library.h" | 23 #include "chrome/browser/chromeos/cros/network_library.h" |
24 #include "chrome/browser/chromeos/mobile/mobile_activator.h" | 24 #include "chrome/browser/chromeos/mobile/mobile_activator.h" |
25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/ui/browser_list.h" | 26 #include "chrome/browser/ui/browser_list.h" |
27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
28 #include "chrome/common/render_messages.h" | 28 #include "chrome/common/render_messages.h" |
29 #include "chrome/common/url_constants.h" | 29 #include "chrome/common/url_constants.h" |
30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 | 509 |
510 // Set up the chrome://mobilesetup/ source. | 510 // Set up the chrome://mobilesetup/ source. |
511 Profile* profile = Profile::FromWebUI(web_ui); | 511 Profile* profile = Profile::FromWebUI(web_ui); |
512 content::URLDataSource::Add(profile, html_source); | 512 content::URLDataSource::Add(profile, html_source); |
513 } | 513 } |
514 | 514 |
515 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) { | 515 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) { |
516 // Destroyed by the corresponding RenderViewHost | 516 // Destroyed by the corresponding RenderViewHost |
517 new PortalFrameLoadObserver(AsWeakPtr(), host); | 517 new PortalFrameLoadObserver(AsWeakPtr(), host); |
518 } | 518 } |
OLD | NEW |