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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc

Issue 2152373003: [Extensions] Code Cleanup - Remove redundant smart-ptr get()s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
Index: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc
index d465d093824e53df43e43503fad1745cfec9bc4b..122f6a106839c5fcc0baa0d384135b50992d8a6d 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc
@@ -468,7 +468,7 @@ bool BluetoothLowEnergyConnectFunction::DoWork() {
EXTENSION_FUNCTION_VALIDATE(params.get() != NULL);
bool persistent = false; // Not persistent by default.
- apibtle::ConnectProperties* properties = params.get()->properties.get();
+ apibtle::ConnectProperties* properties = params->properties.get();
if (properties)
persistent = properties->persistent;
@@ -901,7 +901,7 @@ bool BluetoothLowEnergyStartCharacteristicNotificationsFunction::DoWork() {
EXTENSION_FUNCTION_VALIDATE(params.get() != NULL);
bool persistent = false; // Not persistent by default.
- apibtle::NotificationProperties* properties = params.get()->properties.get();
+ apibtle::NotificationProperties* properties = params->properties.get();
if (properties)
persistent = properties->persistent;

Powered by Google App Engine
This is Rietveld 408576698