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

Issue 675993005: components: add wifi_sync component (Closed)

Created:
6 years, 2 months ago by mukesh agrawal
Modified:
6 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@local-master
Project:
chromium
Visibility:
Public.

Description

Add a new component for WiFi credential sync. Populate the new component with utilities related to WiFi security classes. The WiFi security class utility code consists of a) an enum that provides an internal representation of WiFi security classes (e.g. WEP, PSK), and b) functions that convert between shill SecurityClass values, and the enum. BUG=chromium:426693 BUG=chromium:426696 TEST=components_unittests --gtest_filter="Wifi*"

Patch Set 1 #

Total comments: 8

Patch Set 2 : add ifdefs for chromeos-specific code #

Patch Set 3 : rename component, and add stub wifi_credential_syncable_service #

Total comments: 9

Patch Set 4 : rebase #

Patch Set 5 : fix style issues, and unnecessary virtual functions #

Total comments: 33

Patch Set 6 : add/update GN files, add comments, clean up includes, move chromeos-only code to separate files #

Total comments: 1

Patch Set 7 : remove stub wifi_credential_syncable_service #

Total comments: 9

Patch Set 8 : fix nits #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -9 lines) Patch
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
A + components/wifi_sync.gypi View 1 2 3 4 5 6 1 chunk +10 lines, -9 lines 0 comments Download
A components/wifi_sync/BUILD.gn View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A components/wifi_sync/DEPS View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A components/wifi_sync/OWNERS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A components/wifi_sync/wifi_security_class.h View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
A components/wifi_sync/wifi_security_class_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
A components/wifi_sync/wifi_security_class_chromeos_unittest.cc View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (6 generated)
mukesh agrawal
6 years, 1 month ago (2014-10-27 18:11:16 UTC) #2
stevenjb
I'd kind of like to see more of this component before we add it, just ...
6 years, 1 month ago (2014-10-27 20:25:15 UTC) #3
mukesh agrawal
What's the best way to show the other code that goes in this component? Should ...
6 years, 1 month ago (2014-10-27 21:06:07 UTC) #4
mukesh agrawal
https://codereview.chromium.org/675993005/diff/1/components/network_configuration/wifi_security_class.cc File components/network_configuration/wifi_security_class.cc (right): https://codereview.chromium.org/675993005/diff/1/components/network_configuration/wifi_security_class.cc#newcode8 components/network_configuration/wifi_security_class.cc:8: #include "third_party/cros_system_api/dbus/service_constants.h" On 2014/10/27 20:25:15, stevenjb wrote: > #if ...
6 years, 1 month ago (2014-10-27 21:31:27 UTC) #5
stevenjb
On 2014/10/27 21:06:07, mukesh agrawal wrote: > What's the best way to show the other ...
6 years, 1 month ago (2014-10-27 21:40:54 UTC) #6
mukesh agrawal
sgtm. i'll give that a go. On 2014/10/27 21:40:54, stevenjb wrote: > Maybe merge this ...
6 years, 1 month ago (2014-10-27 21:46:21 UTC) #7
mukesh agrawal
ready for another look. On 2014/10/27 21:46:21, mukesh agrawal wrote: > sgtm. i'll give that ...
6 years, 1 month ago (2014-10-27 22:57:09 UTC) #8
mukesh agrawal
primary reviewer: stevenjb@ cc: pavely@, zea@ to look at stub versions of WifiCredentialSyncableService and WifiCredentialSyncableServiceFactory.
6 years, 1 month ago (2014-10-28 01:16:39 UTC) #11
stevenjb
https://codereview.chromium.org/675993005/diff/40001/components/wifi_sync/wifi_credential_syncable_service.cc File components/wifi_sync/wifi_credential_syncable_service.cc (right): https://codereview.chromium.org/675993005/diff/40001/components/wifi_sync/wifi_credential_syncable_service.cc#newcode13 components/wifi_sync/wifi_credential_syncable_service.cc:13: } Are both of these google-clang-formatted? (It just looks ...
6 years, 1 month ago (2014-10-28 21:17:31 UTC) #12
mukesh agrawal
Thanks, Steven. Please take another look. https://codereview.chromium.org/675993005/diff/40001/components/wifi_sync/wifi_credential_syncable_service.cc File components/wifi_sync/wifi_credential_syncable_service.cc (right): https://codereview.chromium.org/675993005/diff/40001/components/wifi_sync/wifi_credential_syncable_service.cc#newcode13 components/wifi_sync/wifi_credential_syncable_service.cc:13: } On 2014/10/28 ...
6 years, 1 month ago (2014-10-29 00:41:34 UTC) #13
mukesh agrawal
Requesting additional reviewers, per OWNERS complaints on pre-submit check: - erikwright@: components.gyp - erg@: DEPS ...
6 years, 1 month ago (2014-10-29 01:45:31 UTC) #16
Paul Stewart
lgtm wrt cros_system_api
6 years, 1 month ago (2014-10-29 03:51:04 UTC) #17
stevenjb
lgtm https://codereview.chromium.org/675993005/diff/40001/components/wifi_sync/wifi_credential_syncable_service.h File components/wifi_sync/wifi_credential_syncable_service.h (right): https://codereview.chromium.org/675993005/diff/40001/components/wifi_sync/wifi_credential_syncable_service.h#newcode45 components/wifi_sync/wifi_credential_syncable_service.h:45: virtual bool IsRunning(); On 2014/10/29 00:41:34, mukesh agrawal ...
6 years, 1 month ago (2014-10-29 17:49:45 UTC) #18
erikwright (departed)
Please add an OWNERS file in components/wifi_sync As long as this remains a stub, the ...
6 years, 1 month ago (2014-10-29 18:18:25 UTC) #19
Elliot Glaysher
https://codereview.chromium.org/675993005/diff/80001/components/wifi_sync/wifi_credential_syncable_service_factory.cc File components/wifi_sync/wifi_credential_syncable_service_factory.cc (right): https://codereview.chromium.org/675993005/diff/80001/components/wifi_sync/wifi_credential_syncable_service_factory.cc#newcode14 components/wifi_sync/wifi_credential_syncable_service_factory.cc:14: NOTIMPLEMENTED(); I don't understand why you've written this stub. ...
6 years, 1 month ago (2014-10-29 19:41:18 UTC) #20
pavely
lgtm https://codereview.chromium.org/675993005/diff/80001/components/wifi_sync/wifi_credential_syncable_service_factory.h File components/wifi_sync/wifi_credential_syncable_service_factory.h (right): https://codereview.chromium.org/675993005/diff/80001/components/wifi_sync/wifi_credential_syncable_service_factory.h#newcode29 components/wifi_sync/wifi_credential_syncable_service_factory.h:29: static KeyedService* BuildInstanceFor( You've stubbed more functions than ...
6 years, 1 month ago (2014-10-30 00:25:38 UTC) #21
mukesh agrawal
Thanks, all. erikwright@, erg@, PTAL. https://codereview.chromium.org/675993005/diff/80001/components/components_tests.gyp File components/components_tests.gyp (right): https://codereview.chromium.org/675993005/diff/80001/components/components_tests.gyp#newcode21 components/components_tests.gyp:21: # Note: sources list ...
6 years, 1 month ago (2014-10-30 18:41:29 UTC) #22
mukesh agrawal
https://codereview.chromium.org/675993005/diff/80001/components/wifi_sync/wifi_credential_syncable_service.cc File components/wifi_sync/wifi_credential_syncable_service.cc (right): https://codereview.chromium.org/675993005/diff/80001/components/wifi_sync/wifi_credential_syncable_service.cc#newcode24 components/wifi_sync/wifi_credential_syncable_service.cc:24: NOTIMPLEMENTED(); One more thought... Since these are just stubs, ...
6 years, 1 month ago (2014-10-30 20:44:54 UTC) #23
Elliot Glaysher
https://codereview.chromium.org/675993005/diff/80001/components/wifi_sync/wifi_credential_syncable_service.cc File components/wifi_sync/wifi_credential_syncable_service.cc (right): https://codereview.chromium.org/675993005/diff/80001/components/wifi_sync/wifi_credential_syncable_service.cc#newcode24 components/wifi_sync/wifi_credential_syncable_service.cc:24: NOTIMPLEMENTED(); On 2014/10/30 20:44:54, mukesh agrawal wrote: > One ...
6 years, 1 month ago (2014-10-31 20:39:07 UTC) #24
mukesh agrawal
On 2014/10/31 20:39:07, Elliot Glaysher wrote: > I think you should just remove this file, ...
6 years, 1 month ago (2014-10-31 21:14:45 UTC) #25
mukesh agrawal
pavely@ and erg@ no longer required reviewers, due to revised DEPS. (But feel free to ...
6 years, 1 month ago (2014-11-03 17:57:05 UTC) #27
stevenjb
lgtm w/nits https://codereview.chromium.org/675993005/diff/120001/components/wifi_sync/wifi_security_class.h File components/wifi_sync/wifi_security_class.h (right): https://codereview.chromium.org/675993005/diff/120001/components/wifi_sync/wifi_security_class.h#newcode23 components/wifi_sync/wifi_security_class.h:23: // nit: no separation within function comments ...
6 years, 1 month ago (2014-11-04 17:21:21 UTC) #28
mukesh agrawal
https://codereview.chromium.org/675993005/diff/120001/components/wifi_sync/wifi_security_class.h File components/wifi_sync/wifi_security_class.h (right): https://codereview.chromium.org/675993005/diff/120001/components/wifi_sync/wifi_security_class.h#newcode23 components/wifi_sync/wifi_security_class.h:23: // On 2014/11/04 17:21:21, stevenjb wrote: > nit: no ...
6 years, 1 month ago (2014-11-04 19:04:06 UTC) #29
stevenjb
Cheers. Still lgtm.
6 years, 1 month ago (2014-11-04 19:05:42 UTC) #30
erikwright (departed)
This looks fine but I'd like to see the code that actually uses this CL ...
6 years, 1 month ago (2014-11-05 15:26:42 UTC) #31
mukesh agrawal
On 2014/11/05 15:26:42, erikwright wrote: > This looks fine but I'd like to see the ...
6 years, 1 month ago (2014-11-07 23:52:49 UTC) #32
mukesh agrawal
D'oh! Let's try linkifying again: * crrev.com/675993005 components: add wifi_sync component crrev.com/709683004 wifi_sync: add a ...
6 years, 1 month ago (2014-11-07 23:57:43 UTC) #33
mukesh agrawal
One more try: * http://crrev.com/675993005 components: add wifi_sync component http://crrev.com/709683004 wifi_sync: add a stub SyncableService ...
6 years, 1 month ago (2014-11-08 00:37:25 UTC) #34
mukesh agrawal
6 years, 1 month ago (2014-11-13 16:26:51 UTC) #35
Closing this CL, as the useful bits have been absorbed into
https://codereview.chromium.org/709683004/.

Powered by Google App Engine
This is Rietveld 408576698