Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: extensions/browser/api/bluetooth/bluetooth_event_router.cc

Issue 2236443003: extensions: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't add braces Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/browser/api/declarative/declarative_rule_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/bluetooth/bluetooth_event_router.cc
diff --git a/extensions/browser/api/bluetooth/bluetooth_event_router.cc b/extensions/browser/api/bluetooth/bluetooth_event_router.cc
index 39300a75ecb2fcc0d49a15fdf093abe215a8c36f..841935dc611615b087d5f8c52b8dd939911b3b0b 100644
--- a/extensions/browser/api/bluetooth/bluetooth_event_router.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_event_router.cc
@@ -199,7 +199,7 @@ void BluetoothEventRouter::SetDiscoveryFilter(
BluetoothApiPairingDelegate* BluetoothEventRouter::GetPairingDelegate(
const std::string& extension_id) {
- return ContainsKey(pairing_delegate_map_, extension_id)
+ return base::ContainsKey(pairing_delegate_map_, extension_id)
? pairing_delegate_map_[extension_id]
: nullptr;
}
@@ -241,7 +241,7 @@ void BluetoothEventRouter::AddPairingDelegateImpl(
LOG(ERROR) << "Unable to get adapter for extension_id: " << extension_id;
return;
}
- if (ContainsKey(pairing_delegate_map_, extension_id)) {
+ if (base::ContainsKey(pairing_delegate_map_, extension_id)) {
// For WebUI there may be more than one page open to the same url
// (e.g. chrome://settings). These will share the same pairing delegate.
VLOG(1) << "Pairing delegate already exists for extension_id: "
@@ -258,7 +258,7 @@ void BluetoothEventRouter::AddPairingDelegateImpl(
void BluetoothEventRouter::RemovePairingDelegate(
const std::string& extension_id) {
- if (ContainsKey(pairing_delegate_map_, extension_id)) {
+ if (base::ContainsKey(pairing_delegate_map_, extension_id)) {
BluetoothApiPairingDelegate* delegate = pairing_delegate_map_[extension_id];
if (adapter_.get())
adapter_->RemovePairingDelegate(delegate);
« no previous file with comments | « no previous file | extensions/browser/api/declarative/declarative_rule_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698