| 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/i18n/message_formatter.h" |    8 #include "base/i18n/message_formatter.h" | 
|    9 #include "base/memory/ptr_util.h" |    9 #include "base/memory/ptr_util.h" | 
|   10 #include "base/time/time.h" |   10 #include "base/time/time.h" | 
|   11 #include "build/build_config.h" |   11 #include "build/build_config.h" | 
|   12 #include "chrome/browser/profiles/profile.h" |   12 #include "chrome/browser/profiles/profile.h" | 
|   13 #include "chrome/browser/ui/webui/version_handler.h" |   13 #include "chrome/browser/ui/webui/version_handler.h" | 
|   14 #include "chrome/common/channel_info.h" |   14 #include "chrome/common/channel_info.h" | 
|   15 #include "chrome/common/chrome_content_client.h" |   15 #include "chrome/common/chrome_content_client.h" | 
|   16 #include "chrome/common/url_constants.h" |   16 #include "chrome/common/url_constants.h" | 
|   17 #include "chrome/grit/browser_resources.h" |  | 
|   18 #include "chrome/grit/chromium_strings.h" |   17 #include "chrome/grit/chromium_strings.h" | 
|   19 #include "chrome/grit/generated_resources.h" |   18 #include "chrome/grit/generated_resources.h" | 
|   20 #include "chrome/install_static/install_details.h" |   19 #include "chrome/install_static/install_details.h" | 
|   21 #include "components/grit/components_resources.h" |   20 #include "components/grit/components_resources.h" | 
|   22 #include "components/strings/grit/components_chromium_strings.h" |  | 
|   23 #include "components/strings/grit/components_strings.h" |   21 #include "components/strings/grit/components_strings.h" | 
|   24 #include "components/version_info/version_info.h" |   22 #include "components/version_info/version_info.h" | 
|   25 #include "components/version_ui/version_ui_constants.h" |   23 #include "components/version_ui/version_ui_constants.h" | 
|   26 #include "content/public/browser/url_data_source.h" |   24 #include "content/public/browser/url_data_source.h" | 
|   27 #include "content/public/browser/web_ui.h" |   25 #include "content/public/browser/web_ui.h" | 
|   28 #include "content/public/browser/web_ui_data_source.h" |   26 #include "content/public/browser/web_ui_data_source.h" | 
|   29 #include "content/public/common/user_agent.h" |   27 #include "content/public/common/user_agent.h" | 
|   30 #include "ui/base/l10n/l10n_util.h" |   28 #include "ui/base/l10n/l10n_util.h" | 
|   31 #include "v8/include/v8-version-string.h" |   29 #include "v8/include/v8-version-string.h" | 
|   32  |   30  | 
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  191   // Set up the chrome://theme/ source. |  189   // Set up the chrome://theme/ source. | 
|  192   ThemeSource* theme = new ThemeSource(profile); |  190   ThemeSource* theme = new ThemeSource(profile); | 
|  193   content::URLDataSource::Add(profile, theme); |  191   content::URLDataSource::Add(profile, theme); | 
|  194 #endif |  192 #endif | 
|  195  |  193  | 
|  196   WebUIDataSource::Add(profile, CreateVersionUIDataSource()); |  194   WebUIDataSource::Add(profile, CreateVersionUIDataSource()); | 
|  197 } |  195 } | 
|  198  |  196  | 
|  199 VersionUI::~VersionUI() { |  197 VersionUI::~VersionUI() { | 
|  200 } |  198 } | 
| OLD | NEW |