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

Issue 809803005: wifi_sync: add ability to convert WifiCredential to onc properties (Closed)

Created:
5 years, 11 months ago by mukesh agrawal
Modified:
5 years, 11 months ago
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@submit-4.0-wifi-security-class
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

wifi_sync: add ability to convert WifiCredential to onc properties There will be a couple of places where we need to convert from a WifiCredential, to a DictionaryValue of ONC properties. So let's put the conversion code someplace where it can be re-used. The two places we'll need to convert a WifiCredential to ONC properties will be WifiConfigDelegate and sync integration tests. Both will need ONC properties to create a network in the platform-specific network configuration for ChromeOS. BUG=chromium:431435 TEST=components_unittests --gtest_filter="Wifi*" Committed: https://crrev.com/80674e39108f7c132716a5c8c9a9056ec4716d1e Cr-Commit-Position: refs/heads/master@{#310930}

Patch Set 1 #

Total comments: 29

Patch Set 2 : add validation, return onc_properties via scoped_ptr, fix nits #

Total comments: 3

Patch Set 3 : fix typo #

Total comments: 14

Patch Set 4 : fix nits #

Patch Set 5 : rebase + resolve conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -19 lines) Patch
M components/components_tests.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/wifi_sync/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/wifi_sync/network_state_helper_chromeos.cc View 1 2 3 4 1 chunk +7 lines, -3 lines 0 comments Download
M components/wifi_sync/wifi_credential.h View 1 2 3 2 chunks +38 lines, -6 lines 0 comments Download
M components/wifi_sync/wifi_credential.cc View 1 2 3 2 chunks +70 lines, -10 lines 0 comments Download
A components/wifi_sync/wifi_credential_unittest.cc View 1 2 3 1 chunk +140 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
mukesh agrawal
This CL replaces https://codereview.chromium.org/831693005/
5 years, 11 months ago (2015-01-08 02:04:37 UTC) #3
stevenjb
https://codereview.chromium.org/809803005/diff/1/components/wifi_sync/wifi_credential.h File components/wifi_sync/wifi_credential.h (right): https://codereview.chromium.org/809803005/diff/1/components/wifi_sync/wifi_credential.h#newcode63 components/wifi_sync/wifi_credential.h:63: static SsidBytes MakeSsidBytes(const std::string& ssid); If this is only ...
5 years, 11 months ago (2015-01-08 17:27:51 UTC) #4
erikwright (departed)
https://codereview.chromium.org/809803005/diff/1/components/wifi_sync/wifi_credential.cc File components/wifi_sync/wifi_credential.cc (right): https://codereview.chromium.org/809803005/diff/1/components/wifi_sync/wifi_credential.cc#newcode8 components/wifi_sync/wifi_credential.cc:8: #include <string> not required (included in header) https://codereview.chromium.org/809803005/diff/1/components/wifi_sync/wifi_credential.cc#newcode16 components/wifi_sync/wifi_credential.cc:16: ...
5 years, 11 months ago (2015-01-08 19:27:08 UTC) #5
mukesh agrawal
https://codereview.chromium.org/809803005/diff/1/components/wifi_sync/wifi_credential.cc File components/wifi_sync/wifi_credential.cc (right): https://codereview.chromium.org/809803005/diff/1/components/wifi_sync/wifi_credential.cc#newcode8 components/wifi_sync/wifi_credential.cc:8: #include <string> On 2015/01/08 19:27:07, erikwright wrote: > not ...
5 years, 11 months ago (2015-01-09 02:00:18 UTC) #6
mukesh agrawal
Thanks, all. PTAL.
5 years, 11 months ago (2015-01-09 02:06:04 UTC) #7
erikwright (departed)
LGTM with nits. https://codereview.chromium.org/809803005/diff/1/components/wifi_sync/wifi_credential.cc File components/wifi_sync/wifi_credential.cc (right): https://codereview.chromium.org/809803005/diff/1/components/wifi_sync/wifi_credential.cc#newcode41 components/wifi_sync/wifi_credential.cc:41: if (!WifiSecurityClassToOncSecurityString(security_class(), &onc_security)) { On 2015/01/09 ...
5 years, 11 months ago (2015-01-09 14:58:21 UTC) #8
stevenjb
lgtm
5 years, 11 months ago (2015-01-09 16:34:43 UTC) #9
mukesh agrawal
Thanks, all. Holding off on the commit bit until the previous CL in this series ...
5 years, 11 months ago (2015-01-09 19:00:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809803005/60001
5 years, 11 months ago (2015-01-10 00:01:27 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/112123) android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/31737) android_chromium_gn_compile_rel ...
5 years, 11 months ago (2015-01-10 00:07:44 UTC) #14
mukesh agrawal
small conflict in network_state_helper_chromeos.cc
5 years, 11 months ago (2015-01-10 00:37:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809803005/80001
5 years, 11 months ago (2015-01-10 00:38:19 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-10 01:22:20 UTC) #18
commit-bot: I haz the power
5 years, 11 months ago (2015-01-10 01:23:15 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/80674e39108f7c132716a5c8c9a9056ec4716d1e
Cr-Commit-Position: refs/heads/master@{#310930}

Powered by Google App Engine
This is Rietveld 408576698