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

Issue 2689223002: Defer NetworkConfigurationHandler::CreateShillConfiguration callback (Closed)

Created:
3 years, 10 months ago by stevenjb
Modified:
3 years, 10 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

Defer NetworkConfigurationHandler::CreateShillConfiguration callback Currently the code calls the NetworkConfigurationHandler ::CreateShillConfiguration callback immediately, which is only valid if Shill updates Chrome with the new network configuration in the same frame as the configuration was applied. At some point the Shill behavior Chrome, breaking the (fragile) Chrome network cofiguration layer. This CL defers the configuration success callback until the NetworkStateHandler has been updated with the new configuration (allowing a subsequent connection attempt to succeed). This CL also replaces SupportsWeakPtr with the more reliable WeakPtrFactory (apologies for the churn). BUG=662571 Review-Url: https://codereview.chromium.org/2679423008 Cr-Commit-Position: refs/heads/master@{#449787} (cherry picked from commit 4be001fc71af06d07cb05c30e4b0665efadefed5) Review-Url: https://codereview.chromium.org/2689223002 . Cr-Commit-Position: refs/branch-heads/2987@{#479} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/dc15db5aaa57bb3f35137c1773db691af6a1414a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -35 lines) Patch
M chrome/browser/chromeos/net/network_throttling_observer_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/auto_connect_handler_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/client_cert_resolver_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/host_resolver_impl_chromeos_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/network/network_cert_migrator_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/network_configuration_handler.h View 5 chunks +17 lines, -3 lines 0 comments Download
M chromeos/network/network_configuration_handler.cc View 11 chunks +64 lines, -31 lines 0 comments Download
M chromeos/network/network_configuration_handler_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chromeos/network/network_connection_handler_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/network_device_handler_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/network_state_handler_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/prohibited_technologies_handler_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
stevenjb
3 years, 10 months ago (2017-02-13 18:50:11 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
dc15db5aaa57bb3f35137c1773db691af6a1414a.

Powered by Google App Engine
This is Rietveld 408576698