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

Issue 291333009: network_time: Remove NetworkTimeService (Closed)

Created:
6 years, 7 months ago by hashimoto
Modified:
6 years, 6 months ago
Reviewers:
haitaol1, sky
CC:
chromium-reviews, blundell
Visibility:
Public.

Description

network_time: Remove NetworkTimeService Use the local state instead of a pref belonging to a Profile. Save the time mapping when the network time is updated, load the saved time in the ctor. Delay initialization of BrowserProcess::network_time_tracker_ to access the local state. BUG=371470 TEST=git cl try Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273784

Patch Set 1 : #

Total comments: 4

Patch Set 2 : rebase #

Patch Set 3 : Remove switch #

Patch Set 4 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -248 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
D chrome/browser/network_time/network_time_service.h View 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/browser/network_time/network_time_service.cc View 1 chunk +0 lines, -81 lines 0 comments Download
D chrome/browser/network_time/network_time_service_factory.h View 1 chunk +0 lines, -36 lines 0 comments Download
D chrome/browser/network_time/network_time_service_factory.cc View 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/browser/network_time/network_time_tracker.h View 3 chunks +9 lines, -11 lines 0 comments Download
M chrome/browser/network_time/network_time_tracker.cc View 1 2 3 chunks +40 lines, -21 lines 0 comments Download
M chrome/browser/network_time/network_time_tracker_unittest.cc View 1 2 3 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/pref_names.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/testing_browser_process.cc View 3 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
hashimoto
Please review. The new code saves the network time to the local state every time ...
6 years, 7 months ago (2014-05-26 02:21:49 UTC) #1
hashimoto
cc: blundell
6 years, 7 months ago (2014-05-26 02:22:16 UTC) #2
haitaol1
Please also seek approval for changes to browser_process_impl.cc, etc. https://codereview.chromium.org/291333009/diff/20001/chrome/browser/network_time/network_time_tracker.cc File chrome/browser/network_time/network_time_tracker.cc (right): https://codereview.chromium.org/291333009/diff/20001/chrome/browser/network_time/network_time_tracker.cc#newcode44 chrome/browser/network_time/network_time_tracker.cc:44: ...
6 years, 7 months ago (2014-05-27 23:09:30 UTC) #3
hashimoto
https://codereview.chromium.org/291333009/diff/20001/chrome/browser/network_time/network_time_tracker.cc File chrome/browser/network_time/network_time_tracker.cc (right): https://codereview.chromium.org/291333009/diff/20001/chrome/browser/network_time/network_time_tracker.cc#newcode44 chrome/browser/network_time/network_time_tracker.cc:44: switches::kEnableNetworkTime)) { On 2014/05/27 23:09:31, haitaol1 wrote: > This ...
6 years, 6 months ago (2014-05-28 11:25:52 UTC) #4
haitaol1
code LGTM, please fix tests
6 years, 6 months ago (2014-05-28 20:57:27 UTC) #5
hashimoto
On 2014/05/28 20:57:27, haitaol1 wrote: > code LGTM, please fix tests Oops, sorry, I should ...
6 years, 6 months ago (2014-05-29 04:31:30 UTC) #6
hashimoto
sky@, could you review the following files? chrome/browser/browser_process_impl.cc chrome/browser/prefs/browser_prefs.cc chrome/test/base/testing_browser_process.cc In the new code, BrowserProcessImpl ...
6 years, 6 months ago (2014-05-29 04:32:56 UTC) #7
sky
LGTM
6 years, 6 months ago (2014-05-29 15:00:46 UTC) #8
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 6 months ago (2014-05-30 01:10:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/291333009/80001
6 years, 6 months ago (2014-05-30 01:11:39 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 10:17:06 UTC) #11
Message was sent while issue was closed.
Change committed as 273784

Powered by Google App Engine
This is Rietveld 408576698