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

Side by Side Diff: components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.cc

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.h" 5 #include "components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/values.h" 10 #include "base/values.h"
12 #include "components/prefs/pref_registry_simple.h" 11 #include "components/prefs/pref_registry_simple.h"
13 #include "components/prefs/pref_service.h" 12 #include "components/prefs/pref_service.h"
14 #include "components/prefs/scoped_user_pref_update.h" 13 #include "components/prefs/scoped_user_pref_update.h"
15 #include "components/proximity_auth/ble/pref_names.h" 14 #include "components/proximity_auth/ble/pref_names.h"
16 #include "components/proximity_auth/logging/logging.h" 15 #include "components/proximity_auth/logging/logging.h"
17 16
18 namespace proximity_auth { 17 namespace proximity_auth {
19 18
20 BluetoothLowEnergyDeviceWhitelist::BluetoothLowEnergyDeviceWhitelist( 19 BluetoothLowEnergyDeviceWhitelist::BluetoothLowEnergyDeviceWhitelist(
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 return RemoveDeviceWithAddress(GetDeviceAddress(public_key)); 105 return RemoveDeviceWithAddress(GetDeviceAddress(public_key));
107 } 106 }
108 107
109 const base::DictionaryValue* 108 const base::DictionaryValue*
110 BluetoothLowEnergyDeviceWhitelist::GetWhitelistPrefs() const { 109 BluetoothLowEnergyDeviceWhitelist::GetWhitelistPrefs() const {
111 return pref_service_->GetDictionary( 110 return pref_service_->GetDictionary(
112 prefs::kBluetoothLowEnergyDeviceWhitelist); 111 prefs::kBluetoothLowEnergyDeviceWhitelist);
113 } 112 }
114 113
115 } // namespace proximity_auth 114 } // namespace proximity_auth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698