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> |
(...skipping 18 matching lines...) Expand all Loading... |
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_process.h" | 31 #include "chrome/browser/browser_process.h" |
32 #include "chrome/browser/defaults.h" | 32 #include "chrome/browser/defaults.h" |
33 #include "chrome/browser/memory_details.h" | 33 #include "chrome/browser/memory_details.h" |
34 #include "chrome/browser/net/predictor.h" | 34 #include "chrome/browser/net/predictor.h" |
35 #include "chrome/browser/profiles/profile.h" | 35 #include "chrome/browser/profiles/profile.h" |
36 #include "chrome/browser/profiles/profile_manager.h" | 36 #include "chrome/browser/profiles/profile_manager.h" |
37 #include "chrome/browser/ui/browser_dialogs.h" | 37 #include "chrome/browser/ui/browser_dialogs.h" |
38 #include "chrome/common/chrome_paths.h" | 38 #include "chrome/common/chrome_paths.h" |
39 #include "chrome/common/net/url_fixer_upper.h" | |
40 #include "chrome/common/render_messages.h" | 39 #include "chrome/common/render_messages.h" |
41 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" |
42 #include "content/public/browser/browser_thread.h" | 41 #include "content/public/browser/browser_thread.h" |
43 #include "content/public/browser/render_process_host.h" | 42 #include "content/public/browser/render_process_host.h" |
44 #include "content/public/browser/render_view_host.h" | 43 #include "content/public/browser/render_view_host.h" |
45 #include "content/public/browser/url_data_source.h" | 44 #include "content/public/browser/url_data_source.h" |
46 #include "content/public/browser/web_contents.h" | 45 #include "content/public/browser/web_contents.h" |
47 #include "content/public/common/content_client.h" | 46 #include "content/public/common/content_client.h" |
48 #include "content/public/common/process_type.h" | 47 #include "content/public/common/process_type.h" |
49 #include "google_apis/gaia/google_service_auth_error.h" | 48 #include "google_apis/gaia/google_service_auth_error.h" |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 Profile* profile = Profile::FromWebUI(web_ui); | 1094 Profile* profile = Profile::FromWebUI(web_ui); |
1096 | 1095 |
1097 #if defined(ENABLE_THEMES) | 1096 #if defined(ENABLE_THEMES) |
1098 // Set up the chrome://theme/ source. | 1097 // Set up the chrome://theme/ source. |
1099 ThemeSource* theme = new ThemeSource(profile); | 1098 ThemeSource* theme = new ThemeSource(profile); |
1100 content::URLDataSource::Add(profile, theme); | 1099 content::URLDataSource::Add(profile, theme); |
1101 #endif | 1100 #endif |
1102 | 1101 |
1103 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); | 1102 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); |
1104 } | 1103 } |
OLD | NEW |