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/about_ui.h" | 5 #include "chrome/browser/ui/webui/about_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/i18n/number_formatting.h" | 17 #include "base/i18n/number_formatting.h" |
18 #include "base/json/json_writer.h" | 18 #include "base/json/json_writer.h" |
19 #include "base/memory/singleton.h" | 19 #include "base/memory/singleton.h" |
20 #include "base/metrics/statistics_recorder.h" | 20 #include "base/metrics/statistics_recorder.h" |
21 #include "base/metrics/stats_table.h" | 21 #include "base/metrics/stats_table.h" |
22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
23 #include "base/string_util.h" | 23 #include "base/string_util.h" |
24 #include "base/stringprintf.h" | 24 #include "base/stringprintf.h" |
25 #include "base/strings/string_number_conversions.h" | 25 #include "base/strings/string_number_conversions.h" |
26 #include "base/strings/string_piece.h" | 26 #include "base/strings/string_piece.h" |
| 27 #include "base/strings/utf_string_conversions.h" |
27 #include "base/threading/thread.h" | 28 #include "base/threading/thread.h" |
28 #include "base/utf_string_conversions.h" | |
29 #include "base/values.h" | 29 #include "base/values.h" |
30 #include "chrome/browser/about_flags.h" | 30 #include "chrome/browser/about_flags.h" |
31 #include "chrome/browser/browser_about_handler.h" | 31 #include "chrome/browser/browser_about_handler.h" |
32 #include "chrome/browser/browser_process.h" | 32 #include "chrome/browser/browser_process.h" |
33 #include "chrome/browser/defaults.h" | 33 #include "chrome/browser/defaults.h" |
34 #include "chrome/browser/memory_details.h" | 34 #include "chrome/browser/memory_details.h" |
35 #include "chrome/browser/net/predictor.h" | 35 #include "chrome/browser/net/predictor.h" |
36 #include "chrome/browser/net/url_fixer_upper.h" | 36 #include "chrome/browser/net/url_fixer_upper.h" |
37 #include "chrome/browser/profiles/profile.h" | 37 #include "chrome/browser/profiles/profile.h" |
38 #include "chrome/browser/profiles/profile_manager.h" | 38 #include "chrome/browser/profiles/profile_manager.h" |
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1189 Profile* profile = Profile::FromWebUI(web_ui); | 1189 Profile* profile = Profile::FromWebUI(web_ui); |
1190 | 1190 |
1191 #if defined(ENABLE_THEMES) | 1191 #if defined(ENABLE_THEMES) |
1192 // Set up the chrome://theme/ source. | 1192 // Set up the chrome://theme/ source. |
1193 ThemeSource* theme = new ThemeSource(profile); | 1193 ThemeSource* theme = new ThemeSource(profile); |
1194 content::URLDataSource::Add(profile, theme); | 1194 content::URLDataSource::Add(profile, theme); |
1195 #endif | 1195 #endif |
1196 | 1196 |
1197 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); | 1197 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); |
1198 } | 1198 } |
OLD | NEW |