diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 18:18:30 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 18:18:30 +0000 |
commit | df9accd1803cefe3852bf7967d3349e5142af79e (patch) | |
tree | a5971ebc1fd6b461060db05b31dfc798119bcd44 /content/renderer/render_thread_impl.h | |
parent | 22a9e96e4a113611ab6f6e520a5c0484aa5ad843 (diff) | |
download | chromium_src-df9accd1803cefe3852bf7967d3349e5142af79e.zip chromium_src-df9accd1803cefe3852bf7967d3349e5142af79e.tar.gz chromium_src-df9accd1803cefe3852bf7967d3349e5142af79e.tar.bz2 |
Notify the entire renderer of timezone changes instead of each frame individually
The timezone cache in v8 is a global property, so we shouldn't have to
clear it several times.
BUG=348856
R=tsepez@chromium.org,marja@chromium.org,kalman@chromium.org
Review URL: https://codereview.chromium.org/194643003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256876 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread_impl.h')
-rw-r--r-- | content/renderer/render_thread_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h index abace7f..192cb8a8 100644 --- a/content/renderer/render_thread_impl.h +++ b/content/renderer/render_thread_impl.h @@ -121,6 +121,10 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, // module are registered properly. Static to allow sharing with tests. static void RegisterSchemes(); + // Notify V8 that the date/time configuration of the system might have + // changed. + static void NotifyTimezoneChange(); + // RenderThread implementation: virtual bool Send(IPC::Message* msg) OVERRIDE; virtual base::MessageLoop* GetMessageLoop() OVERRIDE; @@ -402,6 +406,7 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, void OnNetworkStateChanged(bool online); void OnGetAccessibilityTree(); void OnTempCrashWithData(const GURL& data); + void OnUpdateTimezone(); void OnMemoryPressure( base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); #if defined(OS_ANDROID) |