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

Issue 12729002: Add a unified observer to replace NetworkManagerObserver (Closed)

Created:
7 years, 9 months ago by gauravsh
Modified:
7 years, 9 months ago
Reviewers:
xiyuan, stevenjb, tbarzic, sky
CC:
chromium-reviews, cbentzel+watch_chromium.org, nkostylev+watch_chromium.org, gspencer+watch_chromium.org, gauravsh+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_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
Visibility:
Public.

Description

Add a unified observer to replace NetworkManagerObserver [reland of 187767 with fix for shutdown crash due to improper destruction order.] The new observer implementation allows one to use either of NetworkLibrary or NetworkStateHandler to be notified of manager events. Also, switch over a few trivial NetworkManagerObserver consumers to use this new observer. TBR=sky@ for chrome/*.gypi changes BUG=chromium:181250, chromium:167232 TEST=existing tests, tested on device Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188296

Patch Set 1 #

Patch Set 2 : Switch over login_utils #

Patch Set 3 : burn_manager #

Patch Set 4 : mobile_activator #

Patch Set 5 : network_dropdown #

Patch Set 6 : Fix mobile_activator_unittest #

Total comments: 17

Patch Set 7 : remove CrosLibrary check from file_browser_event_router #

Patch Set 8 : Use Get() in ConnectivityStateHandler destructor. #

Patch Set 9 : Add RequestScan(), remove mobile_activator_* changes #

Patch Set 10 : Fix clang error, add IsInitialized() check to file_browser_event_router #

Patch Set 11 : Fix crash at shutdown #

Total comments: 5

Patch Set 12 : . #

Patch Set 13 : rebase + move ConnectivityStateHelper initialization/shutdown #

Patch Set 14 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -63 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.h View 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +8 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/imageburner/burn_manager.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/imageburner/burn_manager.cc View 1 2 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/net/connectivity_state_helper.h View 1 2 3 4 5 6 7 8 9 4 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/net/connectivity_state_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +63 lines, -4 lines 0 comments Download
A chrome/browser/chromeos/net/connectivity_state_helper_observer.h View 1 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/net/mock_connectivity_state_helper.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/network_dropdown.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/network_dropdown.cc View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/network_dropdown_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
gauravsh
stevenjb: main review xiyuan: chrome/browser/ui/webui/* OWNERS tbarzic: chrome/browser/chromeos/extension/ OWNERS
7 years, 9 months ago (2013-03-11 22:51:15 UTC) #1
xiyuan
chrome/browser/ui/webui/chromeos/* LGTM
7 years, 9 months ago (2013-03-11 22:58:48 UTC) #2
stevenjb
https://codereview.chromium.org/12729002/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/12729002/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode176 chrome/browser/chromeos/mobile/mobile_activator.cc:176: NetworkLibrary* lib = GetNetworkLibrary(); I'd feel more comfortable converting ...
7 years, 9 months ago (2013-03-11 23:11:04 UTC) #3
tbarzic
https://codereview.chromium.org/12729002/diff/12001/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): https://codereview.chromium.org/12729002/diff/12001/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode308 chrome/browser/chromeos/extensions/file_browser_event_router.cc:308: if (cros_library) { Do we still have to check ...
7 years, 9 months ago (2013-03-11 23:12:31 UTC) #4
gauravsh
https://codereview.chromium.org/12729002/diff/12001/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): https://codereview.chromium.org/12729002/diff/12001/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode308 chrome/browser/chromeos/extensions/file_browser_event_router.cc:308: if (cros_library) { On 2013/03/11 23:12:31, tbarzic wrote: > ...
7 years, 9 months ago (2013-03-12 00:30:25 UTC) #5
tbarzic
c/b/c/extensions LGTM
7 years, 9 months ago (2013-03-12 00:31:47 UTC) #6
stevenjb
https://codereview.chromium.org/12729002/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/12729002/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode176 chrome/browser/chromeos/mobile/mobile_activator.cc:176: NetworkLibrary* lib = GetNetworkLibrary(); On 2013/03/12 00:30:25, gauravsh wrote: ...
7 years, 9 months ago (2013-03-12 15:53:33 UTC) #7
gauravsh
Removed mobile_activator changes out of this CL, and get rid of NetworkLibrary dependency from network_dropdown.*. ...
7 years, 9 months ago (2013-03-12 18:18:09 UTC) #8
stevenjb
OK, this looks fine, thanks. We can look into whether to remove / rename / ...
7 years, 9 months ago (2013-03-12 19:18:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/12729002/22018
7 years, 9 months ago (2013-03-12 19:23:34 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-12 20:01:10 UTC) #11
gauravsh
tbarzic: PTAL. I had to add a IsInitialized() check to file_browser_event_router. Apparently a unit test ...
7 years, 9 months ago (2013-03-12 22:44:15 UTC) #12
tbarzic
On 2013/03/12 22:44:15, gauravsh wrote: > tbarzic: PTAL. I had to add a IsInitialized() check ...
7 years, 9 months ago (2013-03-12 22:46:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/12729002/43001
7 years, 9 months ago (2013-03-12 22:53:14 UTC) #14
commit-bot: I haz the power
Change committed as 187767
7 years, 9 months ago (2013-03-13 04:09:15 UTC) #15
falken
On 2013/03/13 04:09:15, I haz the power (commit-bot) wrote: > Change committed as 187767 Sorry ...
7 years, 9 months ago (2013-03-13 05:46:49 UTC) #16
falken
http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%2520%2528x86%2529/builds/12414 I don't know why I can't copy/paste a link without it getting mangled. Go ...
7 years, 9 months ago (2013-03-13 05:49:53 UTC) #17
gauravsh
stevenjb: Could you take a look at the new patchset? I changed the shut down ...
7 years, 9 months ago (2013-03-13 23:52:21 UTC) #18
stevenjb
https://codereview.chromium.org/12729002/diff/72001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/12729002/diff/72001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode726 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:726: chromeos::ConnectivityStateHelper::Shutdown(); It would be nice if this could be ...
7 years, 9 months ago (2013-03-14 00:10:47 UTC) #19
gauravsh
https://codereview.chromium.org/12729002/diff/72001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/12729002/diff/72001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode726 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:726: chromeos::ConnectivityStateHelper::Shutdown(); On 2013/03/14 00:10:47, stevenjb (chromium) wrote: > It ...
7 years, 9 months ago (2013-03-14 01:06:10 UTC) #20
stevenjb
lgtm https://codereview.chromium.org/12729002/diff/72001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/12729002/diff/72001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode726 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:726: chromeos::ConnectivityStateHelper::Shutdown(); On 2013/03/14 01:06:11, gauravsh wrote: > On ...
7 years, 9 months ago (2013-03-14 01:40:56 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/12729002/87001
7 years, 9 months ago (2013-03-14 04:13:00 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-14 05:31:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/12729002/87001
7 years, 9 months ago (2013-03-14 07:00:56 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=15431
7 years, 9 months ago (2013-03-14 13:05:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/12729002/118001
7 years, 9 months ago (2013-03-15 01:13:46 UTC) #26
commit-bot: I haz the power
7 years, 9 months ago (2013-03-15 08:17:57 UTC) #27
Message was sent while issue was closed.
Change committed as 188296

Powered by Google App Engine
This is Rietveld 408576698