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

Issue 12564007: Hook up system clock update dbus signal to chrome and ash tray ui. (Closed)

Created:
7 years, 9 months ago by jennyz
Modified:
4 years ago
Reviewers:
stevenjb, Dan Beam
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Hook up system clock update dbus signal to chrome and ash tray ui. cros will send tlsdate.TimeUpdated dbus signal when system clock is updated from server, chrome will listen to the signal and update ash tray ui for time. BUG=177970 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188070

Patch Set 1 #

Patch Set 2 : Fix MockDBusThreadManagerWithoutGMock compiling issue. #

Total comments: 15

Patch Set 3 : Fix nits. #

Total comments: 2

Patch Set 4 : Fix browser_tests by adding MockSystemClockClient. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -4 lines) Patch
M ash/system/date/clock_observer.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/date/tray_date.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/date/tray_date.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_notifier.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/tray/system_tray_notifier.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/ash_system_tray_delegate.cc View 5 chunks +9 lines, -0 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 4 chunks +9 lines, -1 line 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.h View 1 2 3 4 chunks +6 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.cc View 1 2 3 4 chunks +10 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager_without_gmock.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
A chromeos/dbus/mock_system_clock_client.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A + chromeos/dbus/mock_system_clock_client.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
A chromeos/dbus/system_clock_client.h View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A chromeos/dbus/system_clock_client.cc View 1 2 3 1 chunk +111 lines, -0 lines 2 comments Download

Messages

Total messages: 13 (1 generated)
jennyz
7 years, 9 months ago (2013-03-12 23:06:06 UTC) #1
jennyz
Please ignore the try bot compilation error for now, since the DEPS roll for service_constants.h ...
7 years, 9 months ago (2013-03-12 23:27:15 UTC) #2
stevenjb
https://codereview.chromium.org/12564007/diff/7001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc File chrome/browser/chromeos/system/ash_system_tray_delegate.cc (right): https://codereview.chromium.org/12564007/diff/7001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc#newcode270 chrome/browser/chromeos/system/ash_system_tray_delegate.cc:270: DBusThreadManager::Get()->GetSystemClockClient()->AddObserver(this); What do you think of making TrayClock a ...
7 years, 9 months ago (2013-03-13 17:34:31 UTC) #3
jennyz
Sorry, holding the patch until we confirmed about TrayDate moving direction. https://codereview.chromium.org/12564007/diff/7001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc File chrome/browser/chromeos/system/ash_system_tray_delegate.cc (right): ...
7 years, 9 months ago (2013-03-13 19:14:01 UTC) #4
stevenjb
https://codereview.chromium.org/12564007/diff/7001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc File chrome/browser/chromeos/system/ash_system_tray_delegate.cc (right): https://codereview.chromium.org/12564007/diff/7001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc#newcode270 chrome/browser/chromeos/system/ash_system_tray_delegate.cc:270: DBusThreadManager::Get()->GetSystemClockClient()->AddObserver(this); On 2013/03/13 19:14:02, jennyz wrote: > On 2013/03/13 ...
7 years, 9 months ago (2013-03-13 19:22:39 UTC) #5
jennyz
https://codereview.chromium.org/12564007/diff/7001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc File chrome/browser/chromeos/system/ash_system_tray_delegate.cc (right): https://codereview.chromium.org/12564007/diff/7001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc#newcode270 chrome/browser/chromeos/system/ash_system_tray_delegate.cc:270: DBusThreadManager::Get()->GetSystemClockClient()->AddObserver(this); On 2013/03/13 19:22:39, stevenjb (chromium) wrote: > On ...
7 years, 9 months ago (2013-03-13 20:47:15 UTC) #6
stevenjb
LGTM with minor fix https://codereview.chromium.org/12564007/diff/15001/chromeos/dbus/system_clock_client.cc File chromeos/dbus/system_clock_client.cc (right): https://codereview.chromium.org/12564007/diff/15001/chromeos/dbus/system_clock_client.cc#newcode89 chromeos/dbus/system_clock_client.cc:89: private:
7 years, 9 months ago (2013-03-13 21:25:53 UTC) #7
jennyz
https://codereview.chromium.org/12564007/diff/15001/chromeos/dbus/system_clock_client.cc File chromeos/dbus/system_clock_client.cc (right): https://codereview.chromium.org/12564007/diff/15001/chromeos/dbus/system_clock_client.cc#newcode89 chromeos/dbus/system_clock_client.cc:89: On 2013/03/13 21:25:54, stevenjb (chromium) wrote: > private: Done.
7 years, 9 months ago (2013-03-13 21:59:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/12564007/22001
7 years, 9 months ago (2013-03-14 02:35:34 UTC) #9
commit-bot: I haz the power
Change committed as 188070
7 years, 9 months ago (2013-03-14 14:54:21 UTC) #10
Dan Beam
https://codereview.chromium.org/12564007/diff/22001/chromeos/dbus/system_clock_client.cc File chromeos/dbus/system_clock_client.cc (right): https://codereview.chromium.org/12564007/diff/22001/chromeos/dbus/system_clock_client.cc#newcode55 chromeos/dbus/system_clock_client.cc:55: VLOG(1) << "TimeUpdated signal received: " << signal->ToString(); is ...
4 years ago (2016-11-28 21:42:50 UTC) #12
stevenjb
4 years ago (2016-11-28 21:58:32 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/12564007/diff/22001/chromeos/dbus/system_cloc...
File chromeos/dbus/system_clock_client.cc (right):

https://codereview.chromium.org/12564007/diff/22001/chromeos/dbus/system_cloc...
chromeos/dbus/system_clock_client.cc:55: VLOG(1) << "TimeUpdated signal
received: " << signal->ToString();
On 2016/11/28 21:42:50, Dan Beam wrote:
> is |signal| guaranteed to be non-null here?

Yes. ObjectProxy::HandleMessage calls RunMethod with a constructed signal.

Powered by Google App Engine
This is Rietveld 408576698