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

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

Issue 2304073003: Mojoify time zone update IPC from browser to renderer (Closed)
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « content/browser/time_zone_monitor_mac.mm ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/time_zone_monitor.h" 5 #include "content/browser/time_zone_monitor.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 13 matching lines...) Expand all
24 &TimeZoneMonitorWin::OnWndProc, base::Unretained(this)))) {} 24 &TimeZoneMonitorWin::OnWndProc, base::Unretained(this)))) {}
25 25
26 ~TimeZoneMonitorWin() override {} 26 ~TimeZoneMonitorWin() override {}
27 27
28 private: 28 private:
29 void OnWndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) { 29 void OnWndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) {
30 if (message != WM_TIMECHANGE) { 30 if (message != WM_TIMECHANGE) {
31 return; 31 return;
32 } 32 }
33 33
34 NotifyRenderers(); 34 NotifyClients();
35 } 35 }
36 36
37 std::unique_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_; 37 std::unique_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(TimeZoneMonitorWin); 39 DISALLOW_COPY_AND_ASSIGN(TimeZoneMonitorWin);
40 }; 40 };
41 41
42 // static 42 // static
43 std::unique_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() { 43 std::unique_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() {
44 return std::unique_ptr<TimeZoneMonitor>(new TimeZoneMonitorWin()); 44 return std::unique_ptr<TimeZoneMonitor>(new TimeZoneMonitorWin());
45 } 45 }
46 46
47 } // namespace content 47 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/time_zone_monitor_mac.mm ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698