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

Issue 2801353002: [CrOS Tether] Fill out the Initializer class. Tether will now initialize fully once the flag is ena… (Closed)

Created:
3 years, 8 months ago by Kyle Horimoto
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jlklein+watch-tether_chromium.org, tengs+watch-tether_chromium.org, achuith+watch_chromium.org, hansberry+watch-tether_chromium.org, jhawkins+watch-tether_chromium.org, alemate+watch_chromium.org, oshima+watch_chromium.org, khorimoto+watch-tether_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[CrOS Tether] Fill out the Initializer class. Tether will now initialize fully once the flag is enabled. This CL also reworks a few of the constructors of related classes and modifies tests accordingly. BUG=672263 Review-Url: https://codereview.chromium.org/2801353002 Cr-Commit-Position: refs/heads/master@{#463868} Committed: https://chromium.googlesource.com/chromium/src/+/8e3c185effa25c01193d44193fd661d5a88d56fc

Patch Set 1 #

Total comments: 6

Patch Set 2 : Remove TODO which has been done. #

Total comments: 4

Patch Set 3 : hansberry@ comments, DEPS change. #

Total comments: 4

Patch Set 4 : hansberry@ comments. #

Total comments: 22

Patch Set 5 : stevenjb@ comments. #

Total comments: 2

Patch Set 6 : hansberry@ comment. #

Total comments: 9

Patch Set 7 : stevenjb@ comments. #

Patch Set 8 : Fix TetherNotificationPresenter constructor. #

Patch Set 9 : Added missing dep. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+634 lines, -214 lines) Patch
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 6 chunks +19 lines, -2 lines 0 comments Download
M chromeos/components/tether/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M chromeos/components/tether/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/components/tether/active_host_network_state_updater.h View 1 2 3 4 2 chunks +2 lines, -6 lines 0 comments Download
M chromeos/components/tether/active_host_network_state_updater.cc View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chromeos/components/tether/fake_tether_host_fetcher.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/components/tether/host_scanner.h View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M chromeos/components/tether/host_scanner_unittest.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M chromeos/components/tether/initializer.h View 1 2 3 4 5 6 1 chunk +84 lines, -5 lines 0 comments Download
M chromeos/components/tether/initializer.cc View 1 2 3 4 5 6 1 chunk +172 lines, -8 lines 0 comments Download
A chromeos/components/tether/initializer_unittest.cc View 1 2 3 4 1 chunk +180 lines, -0 lines 0 comments Download
M chromeos/components/tether/local_device_data_provider.h View 1 2 3 4 5 chunks +7 lines, -44 lines 0 comments Download
M chromeos/components/tether/local_device_data_provider.cc View 1 2 3 4 3 chunks +7 lines, -36 lines 0 comments Download
M chromeos/components/tether/local_device_data_provider_unittest.cc View 1 2 3 4 8 chunks +69 lines, -29 lines 0 comments Download
M chromeos/components/tether/mock_local_device_data_provider.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chromeos/components/tether/mock_local_device_data_provider.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/components/tether/tether_connector.h View 1 2 3 4 2 chunks +2 lines, -10 lines 0 comments Download
M chromeos/components/tether/tether_connector.cc View 1 2 3 4 1 chunk +0 lines, -16 lines 0 comments Download
M chromeos/components/tether/tether_host_fetcher.h View 1 2 3 4 4 chunks +8 lines, -9 lines 0 comments Download
M chromeos/components/tether/tether_host_fetcher.cc View 1 2 3 4 3 chunks +6 lines, -10 lines 0 comments Download
M chromeos/components/tether/tether_host_fetcher_unittest.cc View 1 2 3 4 7 chunks +56 lines, -18 lines 0 comments Download
M components/cryptauth/cryptauth_enrollment_manager.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (10 generated)
Kyle Horimoto
stevenjb@ for //chrome/browser change. hansberry@ for the rest.
3 years, 8 months ago (2017-04-07 18:34:17 UTC) #2
Ryan Hansberry
https://codereview.chromium.org/2801353002/diff/1/chromeos/components/tether/initializer.cc File chromeos/components/tether/initializer.cc (right): https://codereview.chromium.org/2801353002/diff/1/chromeos/components/tether/initializer.cc#newcode59 chromeos/components/tether/initializer.cc:59: device::BluetoothAdapterFactory::GetAdapter(base::Bind( We unfortunately need one more callback here :) ...
3 years, 8 months ago (2017-04-07 18:53:41 UTC) #3
Ryan Hansberry
https://codereview.chromium.org/2801353002/diff/1/chromeos/components/tether/initializer.cc File chromeos/components/tether/initializer.cc (right): https://codereview.chromium.org/2801353002/diff/1/chromeos/components/tether/initializer.cc#newcode59 chromeos/components/tether/initializer.cc:59: device::BluetoothAdapterFactory::GetAdapter(base::Bind( We unfortunately need one more callback here :) ...
3 years, 8 months ago (2017-04-07 18:53:41 UTC) #4
Ryan Hansberry
https://codereview.chromium.org/2801353002/diff/20001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2801353002/diff/20001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode1260 chrome/browser/chromeos/login/session/user_session_manager.cc:1260: base::MakeUnique<TetherNotificationPresenter>(), profile->GetPrefs()); tether::TetherNotificationPresenter https://codereview.chromium.org/2801353002/diff/20001/chromeos/components/tether/tether_host_fetcher.cc File chromeos/components/tether/tether_host_fetcher.cc (right): https://codereview.chromium.org/2801353002/diff/20001/chromeos/components/tether/tether_host_fetcher.cc#newcode39 chromeos/components/tether/tether_host_fetcher.cc:39: ...
3 years, 8 months ago (2017-04-07 23:08:55 UTC) #5
Kyle Horimoto
+msarda as a reviewer for the added DEP https://codereview.chromium.org/2801353002/diff/1/chromeos/components/tether/initializer.cc File chromeos/components/tether/initializer.cc (right): https://codereview.chromium.org/2801353002/diff/1/chromeos/components/tether/initializer.cc#newcode59 chromeos/components/tether/initializer.cc:59: device::BluetoothAdapterFactory::GetAdapter(base::Bind( ...
3 years, 8 months ago (2017-04-07 23:33:11 UTC) #7
Ryan Hansberry
lgtm with nits! :D https://codereview.chromium.org/2801353002/diff/40001/chromeos/components/tether/initializer.h File chromeos/components/tether/initializer.h (right): https://codereview.chromium.org/2801353002/diff/40001/chromeos/components/tether/initializer.h#newcode13 chromeos/components/tether/initializer.h:13: #include "components/prefs/pref_registry_simple.h" Remove this. https://codereview.chromium.org/2801353002/diff/40001/chromeos/components/tether/initializer.h#newcode50 ...
3 years, 8 months ago (2017-04-08 00:10:14 UTC) #8
Kyle Horimoto
https://codereview.chromium.org/2801353002/diff/40001/chromeos/components/tether/initializer.h File chromeos/components/tether/initializer.h (right): https://codereview.chromium.org/2801353002/diff/40001/chromeos/components/tether/initializer.h#newcode13 chromeos/components/tether/initializer.h:13: #include "components/prefs/pref_registry_simple.h" On 2017/04/08 00:10:14, Ryan Hansberry wrote: > ...
3 years, 8 months ago (2017-04-08 00:30:28 UTC) #9
Kyle Horimoto
Removed msarda; added rogerta instead.
3 years, 8 months ago (2017-04-10 17:27:08 UTC) #11
Roger Tawa OOO till Jul 10th
signin DEPS lgtm
3 years, 8 months ago (2017-04-10 18:44:19 UTC) #12
stevenjb
https://codereview.chromium.org/2801353002/diff/60001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2801353002/diff/60001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode1261 chrome/browser/chromeos/login/session/user_session_manager.cc:1261: base::MakeUnique<tether::TetherNotificationPresenter>(), See my comment in https://codereview.chromium.org/2805393002/. Also, this is ...
3 years, 8 months ago (2017-04-10 20:26:59 UTC) #13
Kyle Horimoto
I also added a test for Initializer which just initializes everything and destroys the object. ...
3 years, 8 months ago (2017-04-11 01:40:40 UTC) #14
Ryan Hansberry
lgtm again, with a nit https://codereview.chromium.org/2801353002/diff/80001/chromeos/components/tether/initializer.h File chromeos/components/tether/initializer.h (right): https://codereview.chromium.org/2801353002/diff/80001/chromeos/components/tether/initializer.h#newcode81 chromeos/components/tether/initializer.h:81: void IntervalErrorCallback(device::BluetoothAdvertisement::ErrorCode status); Please ...
3 years, 8 months ago (2017-04-11 15:48:40 UTC) #15
Kyle Horimoto
https://codereview.chromium.org/2801353002/diff/80001/chromeos/components/tether/initializer.h File chromeos/components/tether/initializer.h (right): https://codereview.chromium.org/2801353002/diff/80001/chromeos/components/tether/initializer.h#newcode81 chromeos/components/tether/initializer.h:81: void IntervalErrorCallback(device::BluetoothAdvertisement::ErrorCode status); On 2017/04/11 15:48:40, Ryan Hansberry wrote: ...
3 years, 8 months ago (2017-04-11 16:28:14 UTC) #16
stevenjb
Thanks, mostly nits. https://codereview.chromium.org/2801353002/diff/100001/chromeos/components/tether/initializer.cc File chromeos/components/tether/initializer.cc (right): https://codereview.chromium.org/2801353002/diff/100001/chromeos/components/tether/initializer.cc#newcode39 chromeos/components/tether/initializer.cc:39: int64_t kMaxAdvertisingIntervalMilliseconds = 100; constexpr https://codereview.chromium.org/2801353002/diff/100001/chromeos/components/tether/initializer.cc#newcode61 ...
3 years, 8 months ago (2017-04-11 19:52:01 UTC) #17
Kyle Horimoto
https://codereview.chromium.org/2801353002/diff/100001/chromeos/components/tether/initializer.cc File chromeos/components/tether/initializer.cc (right): https://codereview.chromium.org/2801353002/diff/100001/chromeos/components/tether/initializer.cc#newcode39 chromeos/components/tether/initializer.cc:39: int64_t kMaxAdvertisingIntervalMilliseconds = 100; On 2017/04/11 19:52:00, stevenjb wrote: ...
3 years, 8 months ago (2017-04-11 21:43:20 UTC) #18
stevenjb
lgtm
3 years, 8 months ago (2017-04-11 22:30:57 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2801353002/140001
3 years, 8 months ago (2017-04-11 22:48:27 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/317154) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 8 months ago (2017-04-11 23:04:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2801353002/160001
3 years, 8 months ago (2017-04-11 23:14:22 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 01:07:36 UTC) #30
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/8e3c185effa25c01193d44193fd6...

Powered by Google App Engine
This is Rietveld 408576698