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

Side by Side Diff: content/browser/time_zone_monitor_win.cc

Issue 193763002: Listen to WM_TIMECHANGE messages in RenderViewHostImpl on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: process host loop Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/time_zone_monitor_win.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/time_zone_monitor_win.h"
6
7 #include "content/public/browser/render_process_host.h"
8
9 namespace content {
10
11 TimeZoneMonitorWin::TimeZoneMonitorWin() {
12 gfx::SingletonHwnd::GetInstance()->AddObserver(this);
13 }
14
15 TimeZoneMonitorWin::~TimeZoneMonitorWin() {
16 gfx::SingletonHwnd::GetInstance()->RemoveObserver(this);
17 }
18
19 void TimeZoneMonitorWin::OnWndProc(HWND hwnd,
20 UINT message,
21 WPARAM wparam,
22 LPARAM lparam) {
23 if (message != WM_TIMECHANGE)
24 return;
25
26 for (RenderProcessHost::iterator it = RenderProcessHost::AllHostsIterator();
27 !it.IsAtEnd(); it.Advance()) {
28 it.GetCurrentValue()->NotifyTimezoneChange();
29 }
30 }
31
32 }
OLDNEW
« no previous file with comments | « content/browser/time_zone_monitor_win.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698