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

Issue 11620007: Switch from OnIPAddressChanged and OnConnectionTypeChange to OnNetworkChanged

Created:
8 years ago by pauljensen
Modified:
3 years, 8 months ago
Reviewers:
szym
CC:
chromium-reviews, nkostylev+watch_chromium.org, achuith+watch_chromium.org, kinuko+watch, Ilya Sherman, cbentzel+watch_chromium.org, jar (doing other things), stevenjb+watch_chromium.org, jam, joi+watch-content_chromium.org, marja+watch_chromium.org, darin-cc_chromium.org, tzik+watch_chromium.org, tim (not reviewing), derat+watch_chromium.org, Raghu Simha, oshima+watch_chromium.org, haitaol1, akalin, sail+watch_chromium.org, davemoore+watch_chromium.org, mmenke
Visibility:
Public.

Description

Switch from OnIPAddressChanged and OnConnectionTypeChange to OnNetworkChanged NetworkChangeNotifier signal. For information on the motivation behind this change please see http://goo.gl/C7ufI

Patch Set 1 : #

Patch Set 2 : Fix compile failures #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : sync #

Patch Set 6 : Fix linux net_watcher compile fail (r174685) #

Patch Set 7 : fix NetworkChangeNotifierChromeosUpdateTest #

Patch Set 8 : sync (r175336 ) #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : sync (r176369) #

Patch Set 14 : #

Total comments: 18
Unified diffs Side-by-side diffs Delta from patch set Stats (+476 lines, -420 lines) Patch
M chrome/browser/chromeos/contacts/google_contact_store.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/contacts/google_contact_store.cc View 3 chunks +4 lines, -4 lines 2 comments Download
M chrome/browser/chromeos/drive/drive_scheduler.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_scheduler.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/drive_sync_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_sync_client.cc View 1 2 3 4 5 6 7 8 9 12 chunks +19 lines, -18 lines 2 comments Download
M chrome/browser/chromeos/drive/drive_sync_client_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +6 lines, -6 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 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/offline/offline_load_page.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/offline/offline_load_page.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/web_socket_proxy_controller.cc View 3 chunks +7 lines, -5 lines 1 comment Download
M chrome/browser/google/google_url_tracker.h View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.cc View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 1 comment Download
M chrome/browser/io_thread.cc View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/metrics/variations/resource_request_allowed_notifier.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/metrics/variations/resource_request_allowed_notifier.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/net/dns_probe_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/net/dns_probe_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/policy/cloud_policy_refresh_scheduler.h View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud_policy_refresh_scheduler.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 2 3 4 5 6 7 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_client.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_client.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chromeos/network/network_change_notifier_chromeos_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/net/browser_online_state_observer.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/net/browser_online_state_observer.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -19 lines 1 comment Download
M content/browser/renderer_host/p2p/socket_dispatcher_host.h View 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +8 lines, -5 lines 1 comment Download
M content/browser/renderer_host/pepper/pepper_message_filter.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +7 lines, -5 lines 1 comment Download
M jingle/notifier/communicator/login.h View 2 chunks +3 lines, -7 lines 0 comments Download
M jingle/notifier/communicator/login.cc View 2 chunks +7 lines, -12 lines 0 comments Download
M net/android/network_change_notifier_android_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +18 lines, -11 lines 0 comments Download
M net/base/host_resolver_impl.h View 2 chunks +4 lines, -3 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +7 lines, -4 lines 1 comment Download
M net/base/net_test_suite.cc View 1 chunk +2 lines, -2 lines 1 comment Download
M net/base/network_change_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +39 lines, -4 lines 1 comment Download
M net/base/network_change_notifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 16 chunks +51 lines, -34 lines 1 comment Download
M net/base/network_change_notifier_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +30 lines, -18 lines 0 comments Download
M net/dns/address_sorter_posix.h View 2 chunks +4 lines, -3 lines 0 comments Download
M net/dns/address_sorter_posix.cc View 2 chunks +7 lines, -4 lines 1 comment Download
M net/dns/dns_config_service_win.h View 1 chunk +2 lines, -1 line 1 comment Download
M net/dns/dns_config_service_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -6 lines 0 comments Download
M net/proxy/proxy_service.cc View 4 chunks +7 lines, -4 lines 1 comment Download
M net/socket/client_socket_pool_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -3 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -4 lines 0 comments Download
M net/spdy/spdy_session_pool.h View 2 chunks +3 lines, -2 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 3 chunks +8 lines, -5 lines 0 comments Download
M net/spdy/spdy_session_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_session_spdy3_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M net/tools/net_watcher/net_watcher.cc View 6 chunks +17 lines, -15 lines 0 comments Download
M net/url_request/url_request_throttler_manager.h View 3 chunks +10 lines, -16 lines 1 comment Download
M net/url_request/url_request_throttler_manager.cc View 3 chunks +6 lines, -14 lines 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -30 lines 0 comments Download
M remoting/host/signaling_connector.h View 2 chunks +3 lines, -7 lines 0 comments Download
M remoting/host/signaling_connector.cc View 3 chunks +3 lines, -11 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -8 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 3 chunks +7 lines, -16 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
pauljensen
7 years, 11 months ago (2013-01-11 22:01:27 UTC) #1
szym
On 2013/01/11 22:01:27, pauljensen wrote: I'm getting around to this CL now.
7 years, 11 months ago (2013-01-17 19:55:11 UTC) #2
szym
https://codereview.chromium.org/11620007/diff/69001/chrome/browser/chromeos/contacts/google_contact_store.cc File chrome/browser/chromeos/contacts/google_contact_store.cc (right): https://codereview.chromium.org/11620007/diff/69001/chrome/browser/chromeos/contacts/google_contact_store.cc#newcode169 chrome/browser/chromeos/contacts/google_contact_store.cc:169: if (!was_online && is_online_ && should_update_when_online_) { The logic ...
7 years, 11 months ago (2013-01-20 06:52:08 UTC) #3
Daniel Erat
7 years, 11 months ago (2013-01-20 14:21:13 UTC) #4
https://codereview.chromium.org/11620007/diff/69001/chrome/browser/chromeos/c...
File chrome/browser/chromeos/contacts/google_contact_store.cc (right):

https://codereview.chromium.org/11620007/diff/69001/chrome/browser/chromeos/c...
chrome/browser/chromeos/contacts/google_contact_store.cc:169: if (!was_online &&
is_online_ && should_update_when_online_) {
On 2013/01/20 06:52:08, szym wrote:
> The logic here is: "if it's a change from offline to online", so it's going to
> match any OnNetworkChange caused by IP address change, etc.
> 
> It's probably best to ask GoogleContactStore owners if that's ok.

I think that this is okay; I assume that it'll just be a no-op if we remained
online and just got a new IP.  The important part is that this is called
whenever we transition from offline to online.  Getting called more often than
that is fine.

Powered by Google App Engine
This is Rietveld 408576698