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

Issue 11887008: Deprecate ShillNetworkClient and add GeolocationHandler (Closed)

Created:
7 years, 11 months ago by stevenjb
Modified:
7 years, 11 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, gspencer+watch_chromium.org, gauravsh+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Deprecate ShillNetworkClient and add GeolocationHandler Shill deprecated Manager.Network which was being used to get wifi access point data. This eliminates the dead code and adds GeolocationHandler which currently queries Shill.Manager for geolocation data, and caches and returns the result. BUG=167987 For chrome/browser/geolocation: TBR=joth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176858

Patch Set 1 #

Total comments: 9

Patch Set 2 : Self review nits #

Patch Set 3 : Fix copyrights #

Patch Set 4 : Fix copyrights #

Patch Set 5 : Fix initialization / shutdown #

Total comments: 6

Patch Set 6 : Rebase + provide wifi enabled state #

Patch Set 7 : Fix unittest #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+608 lines, -911 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 3 chunks +27 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/cros/mock_network_library.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_base.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_cros.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_cros.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_stub.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_stub.cc View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/geolocation/wifi_data_provider_chromeos.cc View 1 1 chunk +3 lines, -13 lines 0 comments Download
D chrome/browser/geolocation/wifi_data_provider_unittest_chromeos.cc View 1 chunk +0 lines, -79 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chromeos/chromeos.gyp View 7 chunks +5 lines, -7 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 4 chunks +0 lines, -8 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.h View 4 chunks +0 lines, -6 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.cc View 3 chunks +0 lines, -4 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager_without_gmock.h View 1 chunk +0 lines, -1 line 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chromeos/dbus/mock_shill_manager_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
D chromeos/dbus/mock_shill_network_client.h View 1 chunk +0 lines, -34 lines 0 comments Download
D chromeos/dbus/mock_shill_network_client.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M chromeos/dbus/shill_device_client.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chromeos/dbus/shill_device_client.cc View 4 chunks +17 lines, -6 lines 0 comments Download
M chromeos/dbus/shill_manager_client.h View 3 chunks +9 lines, -1 line 0 comments Download
M chromeos/dbus/shill_manager_client.cc View 1 2 3 4 5 6 chunks +41 lines, -0 lines 0 comments Download
M chromeos/dbus/shill_manager_client_unittest.cc View 1 1 chunk +50 lines, -0 lines 0 comments Download
D chromeos/dbus/shill_network_client.h View 1 chunk +0 lines, -83 lines 0 comments Download
D chromeos/dbus/shill_network_client.cc View 1 chunk +0 lines, -145 lines 0 comments Download
D chromeos/dbus/shill_network_client_unittest.cc View 1 chunk +0 lines, -184 lines 0 comments Download
M chromeos/network/cros_network_functions.h View 1 chunk +0 lines, -8 lines 0 comments Download
M chromeos/network/cros_network_functions.cc View 2 chunks +0 lines, -87 lines 0 comments Download
M chromeos/network/cros_network_functions_unittest.cc View 4 chunks +0 lines, -68 lines 0 comments Download
A chromeos/network/geolocation_handler.h View 1 2 3 4 5 1 chunk +86 lines, -0 lines 2 comments Download
A chromeos/network/geolocation_handler.cc View 1 2 3 4 5 1 chunk +174 lines, -0 lines 0 comments Download
A chromeos/network/geolocation_handler_unittest.cc View 1 2 3 4 5 6 1 chunk +112 lines, -0 lines 0 comments Download
M chromeos/network/network_device_handler.h View 6 chunks +13 lines, -10 lines 0 comments Download
M chromeos/network/network_device_handler.cc View 5 chunks +54 lines, -94 lines 0 comments Download
M chromeos/network/network_device_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_sms_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_util.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chromeos/network/shill_property_handler.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chromeos/network/shill_property_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
stevenjb
7 years, 11 months ago (2013-01-12 00:33:53 UTC) #1
Greg Spencer (Chromium)
https://codereview.chromium.org/11887008/diff/1/chrome/browser/geolocation/wifi_data_provider_chromeos.cc File chrome/browser/geolocation/wifi_data_provider_chromeos.cc (right): https://codereview.chromium.org/11887008/diff/1/chrome/browser/geolocation/wifi_data_provider_chromeos.cc#newcode79 chrome/browser/geolocation/wifi_data_provider_chromeos.cc:79: // TODO(stevenjb): Re-implement this with ne network handlers. ne->new ...
7 years, 11 months ago (2013-01-12 00:52:36 UTC) #2
stevenjb
https://codereview.chromium.org/11887008/diff/1/chrome/browser/geolocation/wifi_data_provider_chromeos.cc File chrome/browser/geolocation/wifi_data_provider_chromeos.cc (right): https://codereview.chromium.org/11887008/diff/1/chrome/browser/geolocation/wifi_data_provider_chromeos.cc#newcode79 chrome/browser/geolocation/wifi_data_provider_chromeos.cc:79: // TODO(stevenjb): Re-implement this with ne network handlers. On ...
7 years, 11 months ago (2013-01-12 01:55:59 UTC) #3
gauravsh
questions about usage. looks good otherwise. https://codereview.chromium.org/11887008/diff/5002/chromeos/dbus/shill_manager_client.cc File chromeos/dbus/shill_manager_client.cc (right): https://codereview.chromium.org/11887008/diff/5002/chromeos/dbus/shill_manager_client.cc#newcode507 chromeos/dbus/shill_manager_client.cc:507: // Dictionary of ...
7 years, 11 months ago (2013-01-14 06:19:59 UTC) #4
stevenjb
I agree that the API is not ideal. It was written to match the current ...
7 years, 11 months ago (2013-01-14 19:38:48 UTC) #5
Greg Spencer (Chromium)
LGTM
7 years, 11 months ago (2013-01-14 19:43:22 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11887008/2007
7 years, 11 months ago (2013-01-14 20:16:40 UTC) #7
commit-bot: I haz the power
Presubmit check for 11887008-2007 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-14 20:16:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11887008/2007
7 years, 11 months ago (2013-01-14 21:04:42 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-14 21:58:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11887008/6003
7 years, 11 months ago (2013-01-14 21:59:32 UTC) #11
gauravsh
lgtm https://codereview.chromium.org/11887008/diff/6003/chromeos/network/geolocation_handler.h File chromeos/network/geolocation_handler.h (right): https://codereview.chromium.org/11887008/diff/6003/chromeos/network/geolocation_handler.h#newcode23 chromeos/network/geolocation_handler.h:23: // A typical usage pattern, assuming a wifi ...
7 years, 11 months ago (2013-01-15 03:19:00 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-15 08:51:19 UTC) #13
Message was sent while issue was closed.
Change committed as 176858

Powered by Google App Engine
This is Rietveld 408576698