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/nacl_ui.h" | 5 #include "chrome/browser/ui/webui/nacl_ui.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "base/values.h" | 29 #include "base/values.h" |
30 #include "build/build_config.h" | 30 #include "build/build_config.h" |
31 #include "chrome/browser/plugins/plugin_prefs.h" | 31 #include "chrome/browser/plugins/plugin_prefs.h" |
32 #include "chrome/browser/profiles/profile.h" | 32 #include "chrome/browser/profiles/profile.h" |
33 #include "chrome/common/channel_info.h" | 33 #include "chrome/common/channel_info.h" |
34 #include "chrome/common/chrome_paths.h" | 34 #include "chrome/common/chrome_paths.h" |
35 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
36 #include "chrome/common/url_constants.h" | 36 #include "chrome/common/url_constants.h" |
37 #include "chrome/grit/browser_resources.h" | 37 #include "chrome/grit/browser_resources.h" |
38 #include "chrome/grit/chromium_strings.h" | 38 #include "chrome/grit/chromium_strings.h" |
39 #include "chrome/grit/generated_resources.h" | |
40 #include "components/strings/grit/components_strings.h" | 39 #include "components/strings/grit/components_strings.h" |
41 #include "components/version_info/version_info.h" | 40 #include "components/version_info/version_info.h" |
42 #include "content/public/browser/browser_thread.h" | 41 #include "content/public/browser/browser_thread.h" |
43 #include "content/public/browser/plugin_service.h" | 42 #include "content/public/browser/plugin_service.h" |
44 #include "content/public/browser/web_ui.h" | 43 #include "content/public/browser/web_ui.h" |
45 #include "content/public/browser/web_ui_data_source.h" | 44 #include "content/public/browser/web_ui_data_source.h" |
46 #include "content/public/browser/web_ui_message_handler.h" | 45 #include "content/public/browser/web_ui_message_handler.h" |
47 #include "content/public/common/webplugininfo.h" | 46 #include "content/public/common/webplugininfo.h" |
48 #include "ui/base/l10n/l10n_util.h" | 47 #include "ui/base/l10n/l10n_util.h" |
49 | 48 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 | 387 |
389 NaClUI::NaClUI(content::WebUI* web_ui) : WebUIController(web_ui) { | 388 NaClUI::NaClUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
390 base::RecordAction(UserMetricsAction("ViewAboutNaCl")); | 389 base::RecordAction(UserMetricsAction("ViewAboutNaCl")); |
391 | 390 |
392 web_ui->AddMessageHandler(base::MakeUnique<NaClDomHandler>()); | 391 web_ui->AddMessageHandler(base::MakeUnique<NaClDomHandler>()); |
393 | 392 |
394 // Set up the about:nacl source. | 393 // Set up the about:nacl source. |
395 Profile* profile = Profile::FromWebUI(web_ui); | 394 Profile* profile = Profile::FromWebUI(web_ui); |
396 content::WebUIDataSource::Add(profile, CreateNaClUIHTMLSource()); | 395 content::WebUIDataSource::Add(profile, CreateNaClUIHTMLSource()); |
397 } | 396 } |
OLD | NEW |