| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/device_log_ui.h" | 5 #include "chrome/browser/ui/webui/device_log_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 14 #include "chrome/grit/browser_resources.h" | 14 #include "chrome/grit/browser_resources.h" |
| 15 #include "chrome/grit/chromium_strings.h" | |
| 16 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
| 17 #include "components/device_event_log/device_event_log.h" | 16 #include "components/device_event_log/device_event_log.h" |
| 18 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 19 #include "content/public/browser/web_ui.h" | 18 #include "content/public/browser/web_ui.h" |
| 20 #include "content/public/browser/web_ui_data_source.h" | 19 #include "content/public/browser/web_ui_data_source.h" |
| 21 #include "content/public/browser/web_ui_message_handler.h" | 20 #include "content/public/browser/web_ui_message_handler.h" |
| 22 | 21 |
| 23 namespace chromeos { | 22 namespace chromeos { |
| 24 | 23 |
| 25 namespace { | 24 namespace { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 html->SetDefaultResource(IDR_DEVICE_LOG_UI_HTML); | 83 html->SetDefaultResource(IDR_DEVICE_LOG_UI_HTML); |
| 85 | 84 |
| 86 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), | 85 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), |
| 87 html); | 86 html); |
| 88 } | 87 } |
| 89 | 88 |
| 90 DeviceLogUI::~DeviceLogUI() { | 89 DeviceLogUI::~DeviceLogUI() { |
| 91 } | 90 } |
| 92 | 91 |
| 93 } // namespace chromeos | 92 } // namespace chromeos |
| OLD | NEW |