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/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/webui/version_handler.h" | 11 #include "chrome/browser/ui/webui/version_handler.h" |
12 #include "chrome/common/chrome_content_client.h" | 12 #include "chrome/common/chrome_content_client.h" |
13 #include "chrome/common/chrome_version_info.h" | 13 #include "chrome/common/chrome_version_info.h" |
14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 15 #include "chrome/grit/chromium_strings.h" |
| 16 #include "chrome/grit/generated_resources.h" |
| 17 #include "chrome/grit/google_chrome_strings.h" |
15 #include "content/public/browser/url_data_source.h" | 18 #include "content/public/browser/url_data_source.h" |
16 #include "content/public/browser/web_ui.h" | 19 #include "content/public/browser/web_ui.h" |
17 #include "content/public/browser/web_ui_data_source.h" | 20 #include "content/public/browser/web_ui_data_source.h" |
18 #include "content/public/common/user_agent.h" | 21 #include "content/public/common/user_agent.h" |
19 #include "grit/browser_resources.h" | 22 #include "grit/browser_resources.h" |
20 #include "grit/chromium_strings.h" | |
21 #include "grit/generated_resources.h" | |
22 #include "grit/google_chrome_strings.h" | |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 #include "v8/include/v8.h" | 24 #include "v8/include/v8.h" |
25 | 25 |
26 #if defined(ENABLE_THEMES) | 26 #if defined(ENABLE_THEMES) |
27 #include "chrome/browser/ui/webui/theme_source.h" | 27 #include "chrome/browser/ui/webui/theme_source.h" |
28 #endif | 28 #endif |
29 | 29 |
30 #if defined(OS_ANDROID) | 30 #if defined(OS_ANDROID) |
31 #include "base/android/build_info.h" | 31 #include "base/android/build_info.h" |
32 #include "chrome/browser/ui/android/android_about_app_info.h" | 32 #include "chrome/browser/ui/android/android_about_app_info.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // Set up the chrome://theme/ source. | 148 // Set up the chrome://theme/ source. |
149 ThemeSource* theme = new ThemeSource(profile); | 149 ThemeSource* theme = new ThemeSource(profile); |
150 content::URLDataSource::Add(profile, theme); | 150 content::URLDataSource::Add(profile, theme); |
151 #endif | 151 #endif |
152 | 152 |
153 content::WebUIDataSource::Add(profile, CreateVersionUIDataSource(profile)); | 153 content::WebUIDataSource::Add(profile, CreateVersionUIDataSource(profile)); |
154 } | 154 } |
155 | 155 |
156 VersionUI::~VersionUI() { | 156 VersionUI::~VersionUI() { |
157 } | 157 } |
OLD | NEW |