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

Side by Side Diff: content/browser/geolocation/wifi_data_provider_linux.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Provides wifi scan API binding for suitable for typical linux distributions. 5 // Provides wifi scan API binding for suitable for typical linux distributions.
6 // Currently, only the NetworkManager API is used, accessed via D-Bus (in turn 6 // Currently, only the NetworkManager API is used, accessed via D-Bus (in turn
7 // accessed via the GLib wrapper). 7 // accessed via the GLib wrapper).
8 8
9 #include "content/browser/geolocation/wifi_data_provider_linux.h" 9 #include "content/browser/geolocation/wifi_data_provider_linux.h"
10 10
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 dbus::MethodCall method_call(DBUS_INTERFACE_PROPERTIES, "Get"); 336 dbus::MethodCall method_call(DBUS_INTERFACE_PROPERTIES, "Get");
337 dbus::MessageWriter builder(&method_call); 337 dbus::MessageWriter builder(&method_call);
338 builder.AppendString("org.freedesktop.NetworkManager.AccessPoint"); 338 builder.AppendString("org.freedesktop.NetworkManager.AccessPoint");
339 builder.AppendString(property_name); 339 builder.AppendString(property_name);
340 scoped_ptr<dbus::Response> response = access_point_proxy->CallMethodAndBlock( 340 scoped_ptr<dbus::Response> response = access_point_proxy->CallMethodAndBlock(
341 &method_call, 341 &method_call,
342 dbus::ObjectProxy::TIMEOUT_USE_DEFAULT); 342 dbus::ObjectProxy::TIMEOUT_USE_DEFAULT);
343 if (!response) { 343 if (!response) {
344 LOG(WARNING) << "Failed to get property for " << property_name; 344 LOG(WARNING) << "Failed to get property for " << property_name;
345 } 345 }
346 return response.Pass(); 346 return response;
347 } 347 }
348 348
349 } // namespace 349 } // namespace
350 350
351 // static 351 // static
352 WifiDataProvider* WifiDataProviderManager::DefaultFactoryFunction() { 352 WifiDataProvider* WifiDataProviderManager::DefaultFactoryFunction() {
353 return new WifiDataProviderLinux(); 353 return new WifiDataProviderLinux();
354 } 354 }
355 355
356 WifiDataProviderLinux::WifiDataProviderLinux() { 356 WifiDataProviderLinux::WifiDataProviderLinux() {
(...skipping 19 matching lines...) Expand all
376 376
377 WifiDataProviderCommon::WlanApiInterface* 377 WifiDataProviderCommon::WlanApiInterface*
378 WifiDataProviderLinux::NewWlanApiForTesting(dbus::Bus* bus) { 378 WifiDataProviderLinux::NewWlanApiForTesting(dbus::Bus* bus) {
379 scoped_ptr<NetworkManagerWlanApi> wlan_api(new NetworkManagerWlanApi); 379 scoped_ptr<NetworkManagerWlanApi> wlan_api(new NetworkManagerWlanApi);
380 if (wlan_api->InitWithBus(bus)) 380 if (wlan_api->InitWithBus(bus))
381 return wlan_api.release(); 381 return wlan_api.release();
382 return NULL; 382 return NULL;
383 } 383 }
384 384
385 } // namespace content 385 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/geolocation/geolocation_service_impl.cc ('k') | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698