| 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 "content/public/browser/url_data_source.h" | 16 #include "content/public/browser/url_data_source.h" |
| 17 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
| 18 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
| 19 #include "content/public/common/user_agent.h" | 19 #include "content/public/common/user_agent.h" |
| 20 #include "grit/browser_resources.h" | 20 #include "grit/browser_resources.h" |
| 21 #include "grit/components_strings.h" |
| 21 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
| 22 #include "v8/include/v8.h" | 23 #include "v8/include/v8.h" |
| 23 | 24 |
| 24 #if defined(ENABLE_THEMES) | 25 #if defined(ENABLE_THEMES) |
| 25 #include "chrome/browser/ui/webui/theme_source.h" | 26 #include "chrome/browser/ui/webui/theme_source.h" |
| 26 #endif | 27 #endif |
| 27 | 28 |
| 28 #if defined(OS_ANDROID) | 29 #if defined(OS_ANDROID) |
| 29 #include "base/android/build_info.h" | 30 #include "base/android/build_info.h" |
| 30 #include "chrome/browser/ui/android/android_about_app_info.h" | 31 #include "chrome/browser/ui/android/android_about_app_info.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Set up the chrome://theme/ source. | 145 // Set up the chrome://theme/ source. |
| 145 ThemeSource* theme = new ThemeSource(profile); | 146 ThemeSource* theme = new ThemeSource(profile); |
| 146 content::URLDataSource::Add(profile, theme); | 147 content::URLDataSource::Add(profile, theme); |
| 147 #endif | 148 #endif |
| 148 | 149 |
| 149 WebUIDataSource::Add(profile, CreateVersionUIDataSource()); | 150 WebUIDataSource::Add(profile, CreateVersionUIDataSource()); |
| 150 } | 151 } |
| 151 | 152 |
| 152 VersionUI::~VersionUI() { | 153 VersionUI::~VersionUI() { |
| 153 } | 154 } |
| OLD | NEW |