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

Issue 271853004: Merge NetworkTimeNotifier to NetworkTimeTracker (Closed)

Created:
6 years, 7 months ago by hashimoto
Modified:
6 years, 7 months ago
Reviewers:
haitaol1, sky, mmenke
CC:
chromium-reviews, tim+watch_chromium.org, jar (doing other things), haitaol+watch_chromium.org, asvitkine+watch_chromium.org, Ilya Sherman, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Merge NetworkTimeNotifier to NetworkTimeTracker To remove dependencies to BrowserProcess and IOThread from NetworkTimeTracker. Remove NetworkTimeNotifier from IOThread, add NetworkTimeTracker to BrowserProcess instead. Change all users to use the NetworkTimeTracker instance owned by BrowserProcess. Since NetworkTimeTracker is living in the UI thread, there is no need to have multi-thread callback chain in NetowrkTimeTracker, the only exception is sync_backend_host_impl.cc who needs a callback which can be run on the IO thread. BUG=371470 TEST=git cl try Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271389

Patch Set 1 : return non-NULL for tests #

Patch Set 2 : Rebase, Comment fix #

Total comments: 4

Patch Set 3 : Pass base::Time by value #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -462 lines) Patch
M chrome/browser/browser_process.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/io_thread.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/network_time/network_time_service.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/network_time/network_time_service.cc View 1 2 5 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/network_time/network_time_tracker.h View 1 2 2 chunks +23 lines, -45 lines 0 comments Download
M chrome/browser/network_time/network_time_tracker.cc View 1 2 4 chunks +49 lines, -115 lines 0 comments Download
M chrome/browser/network_time/network_time_tracker_unittest.cc View 1 7 chunks +8 lines, -77 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.cc View 1 2 4 chunks +24 lines, -2 lines 0 comments Download
M chrome/browser/upgrade_detector_impl.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/upgrade_detector_impl.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/test/base/testing_io_thread_state.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M net/DEPS View 1 chunk +0 lines, -5 lines 0 comments Download
D net/base/network_time_notifier.h View 1 chunk +0 lines, -84 lines 0 comments Download
D net/base/network_time_notifier.cc View 1 chunk +0 lines, -92 lines 0 comments Download
M net/net.gypi View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M sync/internal_api/public/http_bridge.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
hashimoto
haitol@, could you review this? IIUC, it's simpler to have a singleton instance of NetworkTimeTracker ...
6 years, 7 months ago (2014-05-15 11:56:52 UTC) #1
haitaol1
On 2014/05/15 11:56:52, hashimoto wrote: > haitol@, could you review this? > > IIUC, it's ...
6 years, 7 months ago (2014-05-15 17:28:29 UTC) #2
haitaol1
lgtm
6 years, 7 months ago (2014-05-15 17:28:52 UTC) #3
hashimoto
On 2014/05/15 17:28:29, haitaol1 wrote: > On 2014/05/15 11:56:52, hashimoto wrote: > > haitol@, could ...
6 years, 7 months ago (2014-05-16 07:12:39 UTC) #4
hashimoto
sky@, could you review changes under chrome/browser/ and chrome/test/base? (chrome/browser/network_time/ is already covered by haitaol@) ...
6 years, 7 months ago (2014-05-16 07:20:00 UTC) #5
mmenke
On 2014/05/16 07:20:00, hashimoto wrote: > sky@, could you review changes under chrome/browser/ and chrome/test/base? ...
6 years, 7 months ago (2014-05-16 13:09:22 UTC) #6
sky
https://codereview.chromium.org/271853004/diff/130001/chrome/browser/sync/glue/sync_backend_host_impl.cc File chrome/browser/sync/glue/sync_backend_host_impl.cc (right): https://codereview.chromium.org/271853004/diff/130001/chrome/browser/sync/glue/sync_backend_host_impl.cc#newcode59 chrome/browser/sync/glue/sync_backend_host_impl.cc:59: content::BrowserThread::PostTask( I'm not familiar with this code. But question. ...
6 years, 7 months ago (2014-05-16 17:17:42 UTC) #7
hashimoto
https://codereview.chromium.org/271853004/diff/130001/chrome/browser/sync/glue/sync_backend_host_impl.cc File chrome/browser/sync/glue/sync_backend_host_impl.cc (right): https://codereview.chromium.org/271853004/diff/130001/chrome/browser/sync/glue/sync_backend_host_impl.cc#newcode59 chrome/browser/sync/glue/sync_backend_host_impl.cc:59: content::BrowserThread::PostTask( On 2014/05/16 17:17:43, sky wrote: > I'm not ...
6 years, 7 months ago (2014-05-16 17:29:32 UTC) #8
sky
LGTM https://codereview.chromium.org/271853004/diff/130001/chrome/browser/sync/glue/sync_backend_host_impl.cc File chrome/browser/sync/glue/sync_backend_host_impl.cc (right): https://codereview.chromium.org/271853004/diff/130001/chrome/browser/sync/glue/sync_backend_host_impl.cc#newcode48 chrome/browser/sync/glue/sync_backend_host_impl.cc:48: void UpdateNetworkTimeOnUIThread(const base::Time& network_time, nit: we generally don't ...
6 years, 7 months ago (2014-05-16 17:37:32 UTC) #9
hashimoto
https://codereview.chromium.org/271853004/diff/130001/chrome/browser/sync/glue/sync_backend_host_impl.cc File chrome/browser/sync/glue/sync_backend_host_impl.cc (right): https://codereview.chromium.org/271853004/diff/130001/chrome/browser/sync/glue/sync_backend_host_impl.cc#newcode48 chrome/browser/sync/glue/sync_backend_host_impl.cc:48: void UpdateNetworkTimeOnUIThread(const base::Time& network_time, On 2014/05/16 17:37:32, sky wrote: ...
6 years, 7 months ago (2014-05-19 03:42:39 UTC) #10
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 7 months ago (2014-05-19 03:43:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/271853004/150001
6 years, 7 months ago (2014-05-19 03:43:58 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-19 05:40:50 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-19 06:52:44 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/154895)
6 years, 7 months ago (2014-05-19 06:52:45 UTC) #15
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 7 months ago (2014-05-19 06:54:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/271853004/150001
6 years, 7 months ago (2014-05-19 06:54:14 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-19 08:12:06 UTC) #18
commit-bot: I haz the power
Failed to commit the patch. Sending chrome/browser/browser_process.h Sending chrome/browser/browser_process_impl.cc Sending chrome/browser/browser_process_impl.h Sending chrome/browser/io_thread.cc Sending chrome/browser/io_thread.h ...
6 years, 7 months ago (2014-05-19 08:12:07 UTC) #19
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 7 months ago (2014-05-19 08:41:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/271853004/170001
6 years, 7 months ago (2014-05-19 08:41:25 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-19 12:39:11 UTC) #22
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 15:10:47 UTC) #23
Message was sent while issue was closed.
Change committed as 271389

Powered by Google App Engine
This is Rietveld 408576698