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/strings/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" |
(...skipping 122 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 |