Chromium Code Reviews
DescriptionThis is the first pass at making GetIPConfigs asynchronous.
This renames the old GetIPConfigs to GetIPConfigsAndBlock, and deprecates it.
Several sites which used to use the old blocking GetIPConfigs have been rewritten to use the non-blocking asynchronous version.
There are still two places that were too complex to convert:
MoreMenuModel::InitMenuItems
SystemTrayDelegate::GetNetworkAddresses
Both of those sites rely on getting their results immediately and
would need their callers to change significantly to switch to async.
In order to allow the IPConfigs to be fetched asynchronously, we need to both get the shill properties for the service and the ipconfigs, so we have to have two layers of async calls. This requires that we convert DictionaryValueCallbacks to use scoped_ptrs so we can avoid a deep copy of the properties.
BUG=chromium:147657
TEST=ran on device, tested network menus and settings. Ran unit tests.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167427
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #
Total comments: 2
Patch Set 5 : Removed scoped_ptr changes #
Total comments: 8
Patch Set 6 : review changes #
Total comments: 2
Patch Set 7 : review changes #Patch Set 8 : fix hardware address format in internet options handler #
Total comments: 3
Patch Set 9 : fix callbacks to not use Network* #Patch Set 10 : #Messages
Total messages: 19 (0 generated)
|