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/version_ui.h" | 5 #include "chrome/browser/ui/webui/version_ui.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/i18n/message_formatter.h" | 8 #include "base/i18n/message_formatter.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/webui/version_handler.h" | 12 #include "chrome/browser/ui/webui/version_handler.h" |
13 #include "chrome/common/channel_info.h" | 13 #include "chrome/common/channel_info.h" |
14 #include "chrome/common/chrome_content_client.h" | 14 #include "chrome/common/chrome_content_client.h" |
15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "chrome/grit/browser_resources.h" |
16 #include "chrome/grit/chromium_strings.h" | 17 #include "chrome/grit/chromium_strings.h" |
17 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
| 19 #include "components/grit/components_resources.h" |
| 20 #include "components/strings/grit/components_chromium_strings.h" |
| 21 #include "components/strings/grit/components_strings.h" |
18 #include "components/version_info/version_info.h" | 22 #include "components/version_info/version_info.h" |
19 #include "components/version_ui/version_ui_constants.h" | 23 #include "components/version_ui/version_ui_constants.h" |
20 #include "content/public/browser/url_data_source.h" | 24 #include "content/public/browser/url_data_source.h" |
21 #include "content/public/browser/web_ui.h" | 25 #include "content/public/browser/web_ui.h" |
22 #include "content/public/browser/web_ui_data_source.h" | 26 #include "content/public/browser/web_ui_data_source.h" |
23 #include "content/public/common/user_agent.h" | 27 #include "content/public/common/user_agent.h" |
24 #include "grit/browser_resources.h" | |
25 #include "grit/components_chromium_strings.h" | |
26 #include "grit/components_resources.h" | |
27 #include "grit/components_strings.h" | |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 #include "v8/include/v8.h" | 29 #include "v8/include/v8.h" |
30 | 30 |
31 #if defined(ENABLE_THEMES) | 31 #if defined(ENABLE_THEMES) |
32 #include "chrome/browser/ui/webui/theme_source.h" | 32 #include "chrome/browser/ui/webui/theme_source.h" |
33 #endif | 33 #endif |
34 | 34 |
35 #if defined(OS_ANDROID) | 35 #if defined(OS_ANDROID) |
36 #include "base/android/build_info.h" | 36 #include "base/android/build_info.h" |
37 #include "chrome/browser/ui/android/android_about_app_info.h" | 37 #include "chrome/browser/ui/android/android_about_app_info.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Set up the chrome://theme/ source. | 171 // Set up the chrome://theme/ source. |
172 ThemeSource* theme = new ThemeSource(profile); | 172 ThemeSource* theme = new ThemeSource(profile); |
173 content::URLDataSource::Add(profile, theme); | 173 content::URLDataSource::Add(profile, theme); |
174 #endif | 174 #endif |
175 | 175 |
176 WebUIDataSource::Add(profile, CreateVersionUIDataSource()); | 176 WebUIDataSource::Add(profile, CreateVersionUIDataSource()); |
177 } | 177 } |
178 | 178 |
179 VersionUI::~VersionUI() { | 179 VersionUI::~VersionUI() { |
180 } | 180 } |
OLD | NEW |