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/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 11 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
12 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" | 12 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" |
13 #include "chrome/browser/ui/webui/version_handler.h" | 13 #include "chrome/browser/ui/webui/version_handler.h" |
14 #include "chrome/common/chrome_version_info.h" | 14 #include "chrome/common/chrome_version_info.h" |
15 #include "chrome/common/jstemplate_builder.h" | |
16 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
17 #include "content/public/browser/web_ui.h" | 16 #include "content/public/browser/web_ui.h" |
18 #include "content/public/common/content_client.h" | 17 #include "content/public/common/content_client.h" |
19 #include "grit/browser_resources.h" | 18 #include "grit/browser_resources.h" |
20 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
21 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
22 #include "grit/google_chrome_strings.h" | 21 #include "grit/google_chrome_strings.h" |
23 #include "v8/include/v8.h" | 22 #include "v8/include/v8.h" |
24 #include "webkit/user_agent/user_agent_util.h" | 23 #include "webkit/user_agent/user_agent_util.h" |
25 | 24 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 ThemeSource* theme = new ThemeSource(profile); | 141 ThemeSource* theme = new ThemeSource(profile); |
143 ChromeURLDataManager::AddDataSource(profile, theme); | 142 ChromeURLDataManager::AddDataSource(profile, theme); |
144 #endif | 143 #endif |
145 | 144 |
146 ChromeURLDataManager::AddDataSourceImpl(profile, | 145 ChromeURLDataManager::AddDataSourceImpl(profile, |
147 CreateVersionUIDataSource(profile)); | 146 CreateVersionUIDataSource(profile)); |
148 } | 147 } |
149 | 148 |
150 VersionUI::~VersionUI() { | 149 VersionUI::~VersionUI() { |
151 } | 150 } |
OLD | NEW |