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