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

Issue 1346843003: Refactor NetworkPortalDetector and NetworkPortalNotificationController. (Closed)

Created:
5 years, 3 months ago by achuithb
Modified:
5 years, 3 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor NetworkPortalDetector and NetworkPortalNotificationController. * NetworkPortalNotificationController directly observes network and portal changes. * conditionally create NetworkPortalNotificationController * move NetworkPortalDetectorStubImpl to stub files. * make interface implementations private * initialize data members in header BUG=530485 TEST=unit tests and browser tests. Committed: https://crrev.com/94c1a3dd78fc09ef765a14a200f4347a43c2e32f Cr-Commit-Position: refs/heads/master@{#350202}

Patch Set 1 #

Total comments: 14

Patch Set 2 : stevenjb feedback #

Patch Set 3 : stub #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -169 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_detector_impl.h View 1 2 8 chunks +41 lines, -41 lines 3 comments Download
M chrome/browser/chromeos/net/network_portal_detector_impl.cc View 1 2 5 chunks +25 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc View 4 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_notification_controller.h View 5 chunks +24 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_notification_controller.cc View 1 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/networking_config_chromeos_apitest_chromeos.cc View 1 4 chunks +11 lines, -4 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chromeos/network/portal_detector/network_portal_detector.h View 1 2 3 chunks +6 lines, -29 lines 0 comments Download
M chromeos/network/portal_detector/network_portal_detector.cc View 4 chunks +4 lines, -47 lines 0 comments Download
A chromeos/network/portal_detector/network_portal_detector_stub.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A chromeos/network/portal_detector/network_portal_detector_stub.cc View 1 2 1 chunk +43 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1346843003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1346843003/1
5 years, 3 months ago (2015-09-17 19:37:10 UTC) #2
achuithb
Steven, please take a look.
5 years, 3 months ago (2015-09-17 19:41:14 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-17 20:06:03 UTC) #6
stevenjb
Nice cleanup, just some minor nits / suggestions. https://codereview.chromium.org/1346843003/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc File chrome/browser/chromeos/net/network_portal_detector_impl.cc (right): https://codereview.chromium.org/1346843003/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc#newcode237 chrome/browser/chromeos/net/network_portal_detector_impl.cc:237: void ...
5 years, 3 months ago (2015-09-17 20:45:53 UTC) #7
achuithb
Thanks for the speedy review! PTAL! https://codereview.chromium.org/1346843003/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc File chrome/browser/chromeos/net/network_portal_detector_impl.cc (right): https://codereview.chromium.org/1346843003/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc#newcode237 chrome/browser/chromeos/net/network_portal_detector_impl.cc:237: void NetworkPortalDetector::Initialize( On ...
5 years, 3 months ago (2015-09-17 22:03:33 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1346843003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1346843003/20001
5 years, 3 months ago (2015-09-17 22:03:49 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-17 22:50:32 UTC) #12
stevenjb
https://codereview.chromium.org/1346843003/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc File chrome/browser/chromeos/net/network_portal_detector_impl.cc (right): https://codereview.chromium.org/1346843003/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc#newcode237 chrome/browser/chromeos/net/network_portal_detector_impl.cc:237: void NetworkPortalDetector::Initialize( On 2015/09/17 22:03:32, achuithb wrote: > On ...
5 years, 3 months ago (2015-09-18 22:04:10 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1346843003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1346843003/60001
5 years, 3 months ago (2015-09-22 17:32:01 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1346843003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1346843003/80001
5 years, 3 months ago (2015-09-22 17:34:52 UTC) #19
achuithb
PTAL Steven. https://codereview.chromium.org/1346843003/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc File chrome/browser/chromeos/net/network_portal_detector_impl.cc (right): https://codereview.chromium.org/1346843003/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc#newcode237 chrome/browser/chromeos/net/network_portal_detector_impl.cc:237: void NetworkPortalDetector::Initialize( On 2015/09/18 22:04:09, stevenjb wrote: ...
5 years, 3 months ago (2015-09-22 17:37:23 UTC) #20
stevenjb
lgtm https://codereview.chromium.org/1346843003/diff/80001/chrome/browser/chromeos/net/network_portal_detector_impl.h File chrome/browser/chromeos/net/network_portal_detector_impl.h (right): https://codereview.chromium.org/1346843003/diff/80001/chrome/browser/chromeos/net/network_portal_detector_impl.h#newcode66 chrome/browser/chromeos/net/network_portal_detector_impl.h:66: static void Initialize(net::URLRequestContextGetter* url_context); On 2015/09/22 17:37:23, achuithb ...
5 years, 3 months ago (2015-09-22 17:41:25 UTC) #21
achuithb
thanks for the review! https://codereview.chromium.org/1346843003/diff/80001/chrome/browser/chromeos/net/network_portal_detector_impl.h File chrome/browser/chromeos/net/network_portal_detector_impl.h (right): https://codereview.chromium.org/1346843003/diff/80001/chrome/browser/chromeos/net/network_portal_detector_impl.h#newcode66 chrome/browser/chromeos/net/network_portal_detector_impl.h:66: static void Initialize(net::URLRequestContextGetter* url_context); On ...
5 years, 3 months ago (2015-09-22 17:43:15 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-22 18:06:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1346843003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1346843003/80001
5 years, 3 months ago (2015-09-22 18:16:04 UTC) #26
achuithb
Ben, could I get an owner lgtm?
5 years, 3 months ago (2015-09-22 18:32:39 UTC) #28
achuithb
On 2015/09/22 18:32:39, achuithb wrote: > Ben, could I get an owner lgtm? for networking_config_chromeos_apitest_chromeos.cc
5 years, 3 months ago (2015-09-22 18:33:17 UTC) #29
not at google - send to devlin
lgtm but you should add a per-file OWNER for chrome/browser/extensions/api/networking_config_chromeos_apitest_chromeos.cc, or better, move it into ...
5 years, 3 months ago (2015-09-22 18:34:28 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/102545)
5 years, 3 months ago (2015-09-22 18:34:54 UTC) #32
achuithb
On 2015/09/22 18:34:28, kalman wrote: > lgtm but you should add a per-file OWNER for ...
5 years, 3 months ago (2015-09-22 18:36:27 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1346843003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1346843003/80001
5 years, 3 months ago (2015-09-22 18:36:57 UTC) #35
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 3 months ago (2015-09-22 18:45:48 UTC) #36
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 18:47:40 UTC) #37
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/94c1a3dd78fc09ef765a14a200f4347a43c2e32f
Cr-Commit-Position: refs/heads/master@{#350202}

Powered by Google App Engine
This is Rietveld 408576698