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 "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_content_client.h" | 11 #include "chrome/common/chrome_content_client.h" |
12 #include "chrome/common/chrome_version_info.h" | 12 #include "chrome/common/chrome_version_info.h" |
13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
14 #include "chrome/grit/chromium_strings.h" | 14 #include "chrome/grit/chromium_strings.h" |
15 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
16 #include "chrome/grit/google_chrome_strings.h" | |
17 #include "content/public/browser/url_data_source.h" | 16 #include "content/public/browser/url_data_source.h" |
18 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
19 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
20 #include "content/public/common/user_agent.h" | 19 #include "content/public/common/user_agent.h" |
21 #include "grit/browser_resources.h" | 20 #include "grit/browser_resources.h" |
22 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
23 #include "v8/include/v8.h" | 22 #include "v8/include/v8.h" |
24 | 23 |
25 #if defined(ENABLE_THEMES) | 24 #if defined(ENABLE_THEMES) |
26 #include "chrome/browser/ui/webui/theme_source.h" | 25 #include "chrome/browser/ui/webui/theme_source.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Set up the chrome://theme/ source. | 144 // Set up the chrome://theme/ source. |
146 ThemeSource* theme = new ThemeSource(profile); | 145 ThemeSource* theme = new ThemeSource(profile); |
147 content::URLDataSource::Add(profile, theme); | 146 content::URLDataSource::Add(profile, theme); |
148 #endif | 147 #endif |
149 | 148 |
150 WebUIDataSource::Add(profile, CreateVersionUIDataSource()); | 149 WebUIDataSource::Add(profile, CreateVersionUIDataSource()); |
151 } | 150 } |
152 | 151 |
153 VersionUI::~VersionUI() { | 152 VersionUI::~VersionUI() { |
154 } | 153 } |
OLD | NEW |