| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/bluetooth_internals/bluetooth_internals_ui.h" | 5 #include "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
| 9 #include "chrome/grit/browser_resources.h" | 9 #include "chrome/grit/browser_resources.h" |
| 10 #include "content/public/browser/web_ui_data_source.h" | 10 #include "content/public/browser/web_ui_data_source.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 html_source->AddResourcePath("interfaces.js", | 27 html_source->AddResourcePath("interfaces.js", |
| 28 IDR_BLUETOOTH_INTERNALS_INTERFACES_JS); | 28 IDR_BLUETOOTH_INTERNALS_INTERFACES_JS); |
| 29 html_source->AddResourcePath("adapter_broker.js", | 29 html_source->AddResourcePath("adapter_broker.js", |
| 30 IDR_BLUETOOTH_INTERNALS_ADAPTER_BROKER_JS); | 30 IDR_BLUETOOTH_INTERNALS_ADAPTER_BROKER_JS); |
| 31 html_source->AddResourcePath( | 31 html_source->AddResourcePath( |
| 32 "device/bluetooth/public/interfaces/adapter.mojom", | 32 "device/bluetooth/public/interfaces/adapter.mojom", |
| 33 IDR_BLUETOOTH_ADAPTER_MOJO_JS); | 33 IDR_BLUETOOTH_ADAPTER_MOJO_JS); |
| 34 html_source->AddResourcePath( | 34 html_source->AddResourcePath( |
| 35 "device/bluetooth/public/interfaces/device.mojom", | 35 "device/bluetooth/public/interfaces/device.mojom", |
| 36 IDR_BLUETOOTH_DEVICE_MOJO_JS); | 36 IDR_BLUETOOTH_DEVICE_MOJO_JS); |
| 37 html_source->AddResourcePath("device/bluetooth/public/interfaces/uuid.mojom", |
| 38 IDR_BLUETOOTH_UUID_MOJO_JS); |
| 37 html_source->SetDefaultResource(IDR_BLUETOOTH_INTERNALS_HTML); | 39 html_source->SetDefaultResource(IDR_BLUETOOTH_INTERNALS_HTML); |
| 38 html_source->DisableI18nAndUseGzipForAllPaths(); | 40 html_source->DisableI18nAndUseGzipForAllPaths(); |
| 39 | 41 |
| 40 Profile* profile = Profile::FromWebUI(web_ui); | 42 Profile* profile = Profile::FromWebUI(web_ui); |
| 41 content::WebUIDataSource::Add(profile, html_source); | 43 content::WebUIDataSource::Add(profile, html_source); |
| 42 } | 44 } |
| 43 | 45 |
| 44 BluetoothInternalsUI::~BluetoothInternalsUI() {} | 46 BluetoothInternalsUI::~BluetoothInternalsUI() {} |
| OLD | NEW |