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

Unified Diff: chromeos/dbus/shill_ipconfig_client.cc

Issue 11367048: This is the first pass at making GetIPConfigs asynchronous. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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: chromeos/dbus/shill_ipconfig_client.cc
diff --git a/chromeos/dbus/shill_ipconfig_client.cc b/chromeos/dbus/shill_ipconfig_client.cc
index 7381a2b7c2a7204bab27c0ef5cb2e3f9c46d6f72..d73ffe2db1e3691efcdef3bf36d3942e9cae1c1b 100644
--- a/chromeos/dbus/shill_ipconfig_client.cc
+++ b/chromeos/dbus/shill_ipconfig_client.cc
@@ -239,7 +239,8 @@ class ShillIPConfigClientStubImpl : public ShillIPConfigClient {
private:
// Runs callback with |properties_|.
void PassProperties(const DictionaryValueCallback& callback) const {
- callback.Run(DBUS_METHOD_CALL_SUCCESS, properties_);
+ scoped_ptr<base::DictionaryValue> properties_copy(properties_.DeepCopy());
+ callback.Run(DBUS_METHOD_CALL_SUCCESS, properties_copy.Pass());
}
base::DictionaryValue properties_;

Powered by Google App Engine
This is Rietveld 408576698