diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 16:43:27 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 16:43:27 +0000 |
commit | 59383c78c7b67b435ff4970060213928e1f153b8 (patch) | |
tree | 5c215c1ba34a10bf83ceea455552908c20061a5b /content/browser/geolocation/wifi_data_provider_linux.cc | |
parent | bf36fe526209a41c15f6747ffc1392206338896c (diff) | |
download | chromium_src-59383c78c7b67b435ff4970060213928e1f153b8.zip chromium_src-59383c78c7b67b435ff4970060213928e1f153b8.tar.gz chromium_src-59383c78c7b67b435ff4970060213928e1f153b8.tar.bz2 |
Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>.
In r174057, ajwong@ added support for implicit testing to scoped_ptr<>. Removes
these in content/.
BUG=232084
Review URL: https://codereview.chromium.org/14081010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/geolocation/wifi_data_provider_linux.cc')
-rw-r--r-- | content/browser/geolocation/wifi_data_provider_linux.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/content/browser/geolocation/wifi_data_provider_linux.cc b/content/browser/geolocation/wifi_data_provider_linux.cc index c8d68ac..09a60f3 100644 --- a/content/browser/geolocation/wifi_data_provider_linux.cc +++ b/content/browser/geolocation/wifi_data_provider_linux.cc @@ -148,7 +148,7 @@ bool NetworkManagerWlanApi::GetAccessPointData( device_proxy->CallMethodAndBlock( &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT)); - if (!response.get()) { + if (!response) { LOG(WARNING) << "Failed to get the device type for " << device_path.value(); continue; // Check the next device. @@ -180,7 +180,7 @@ bool NetworkManagerWlanApi::GetAdapterDeviceList( network_manager_proxy_->CallMethodAndBlock( &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT)); - if (!response.get()) { + if (!response) { LOG(WARNING) << "Failed to get the device list"; return false; } @@ -208,7 +208,7 @@ bool NetworkManagerWlanApi::GetAccessPointsForAdapter( device_proxy->CallMethodAndBlock( &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT)); - if (!response.get()) { + if (!response) { LOG(WARNING) << "Failed to get access points data for " << adapter_path.value(); return false; @@ -236,7 +236,7 @@ bool NetworkManagerWlanApi::GetAccessPointsForAdapter( { scoped_ptr<dbus::Response> response( GetAccessPointProperty(access_point_proxy, "Ssid")); - if (!response.get()) + if (!response) continue; // The response should contain a variant that contains an array of bytes. dbus::MessageReader reader(response.get()); @@ -260,7 +260,7 @@ bool NetworkManagerWlanApi::GetAccessPointsForAdapter( { // Read the mac address scoped_ptr<dbus::Response> response( GetAccessPointProperty(access_point_proxy, "HwAddress")); - if (!response.get()) + if (!response) continue; dbus::MessageReader reader(response.get()); std::string mac; @@ -284,7 +284,7 @@ bool NetworkManagerWlanApi::GetAccessPointsForAdapter( { // Read signal strength. scoped_ptr<dbus::Response> response( GetAccessPointProperty(access_point_proxy, "Strength")); - if (!response.get()) + if (!response) continue; dbus::MessageReader reader(response.get()); uint8 strength = 0; @@ -300,7 +300,7 @@ bool NetworkManagerWlanApi::GetAccessPointsForAdapter( { // Read the channel scoped_ptr<dbus::Response> response( GetAccessPointProperty(access_point_proxy, "Frequency")); - if (!response.get()) + if (!response) continue; dbus::MessageReader reader(response.get()); uint32 frequency = 0; @@ -335,7 +335,7 @@ scoped_ptr<dbus::Response> NetworkManagerWlanApi::GetAccessPointProperty( scoped_ptr<dbus::Response> response = access_point_proxy->CallMethodAndBlock( &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT); - if (!response.get()) { + if (!response) { LOG(WARNING) << "Failed to get property for " << property_name; } return response.Pass(); |