| 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 "content/browser/bluetooth/bluetooth_blacklist.h" | 5 #include "content/browser/bluetooth/bluetooth_blacklist.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/strings/string_split.h" | 9 #include "base/strings/string_split.h" |
| 10 #include "content/common/bluetooth/bluetooth_scan_filter.h" | 10 #include "content/common/bluetooth/bluetooth_scan_filter.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // Descriptors: | 172 // Descriptors: |
| 173 Add(BluetoothUUID("2902"), Value::EXCLUDE_WRITES); | 173 Add(BluetoothUUID("2902"), Value::EXCLUDE_WRITES); |
| 174 Add(BluetoothUUID("2903"), Value::EXCLUDE_WRITES); | 174 Add(BluetoothUUID("2903"), Value::EXCLUDE_WRITES); |
| 175 // Descriptors for Layout Tests: | 175 // Descriptors for Layout Tests: |
| 176 Add(BluetoothUUID("bad2ddcf-60db-45cd-bef9-fd72b153cf7c"), Value::EXCLUDE); | 176 Add(BluetoothUUID("bad2ddcf-60db-45cd-bef9-fd72b153cf7c"), Value::EXCLUDE); |
| 177 Add(BluetoothUUID("bad3ec61-3cc3-4954-9702-7977df514114"), | 177 Add(BluetoothUUID("bad3ec61-3cc3-4954-9702-7977df514114"), |
| 178 Value::EXCLUDE_READS); | 178 Value::EXCLUDE_READS); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void BluetoothBlacklist::PopulateWithServerProvidedValues() { | 181 void BluetoothBlacklist::PopulateWithServerProvidedValues() { |
| 182 // DCHECK to maybe help debug https://crbug.com/604078. |
| 183 DCHECK(GetContentClient()); |
| 182 Add(GetContentClient()->browser()->GetWebBluetoothBlacklist()); | 184 Add(GetContentClient()->browser()->GetWebBluetoothBlacklist()); |
| 183 } | 185 } |
| 184 | 186 |
| 185 } // namespace content | 187 } // namespace content |
| OLD | NEW |