Chromium Code Reviews| Index: chrome/browser/chromeos/system/timezone_settings.cc |
| diff --git a/chrome/browser/chromeos/system/timezone_settings.cc b/chrome/browser/chromeos/system/timezone_settings.cc |
| index 9117c87ed1cd31017240b3c8a7450907593c64f4..f3350cbb62195c1559fc11655ac221920b65e164 100644 |
| --- a/chrome/browser/chromeos/system/timezone_settings.cc |
| +++ b/chrome/browser/chromeos/system/timezone_settings.cc |
| @@ -352,21 +352,15 @@ const icu::TimeZone* TimezoneSettingsBaseImpl::GetKnownTimezoneOrNull( |
| } |
| void TimezoneSettingsBaseImpl::NotifyRenderers() { |
| - content::RenderProcessHost::iterator process_iterator( |
| - content::RenderProcessHost::AllHostsIterator()); |
| - for (; !process_iterator.IsAtEnd(); process_iterator.Advance()) { |
| - content::RenderProcessHost* render_process_host = |
| - process_iterator.GetCurrentValue(); |
| - content::RenderProcessHost::RenderWidgetHostsIterator widget_iterator( |
| - render_process_host->GetRenderWidgetHostsIterator()); |
| - for (; !widget_iterator.IsAtEnd(); widget_iterator.Advance()) { |
| - const content::RenderWidgetHost* widget = |
| - widget_iterator.GetCurrentValue(); |
| - if (widget->IsRenderView()) { |
| - content::RenderViewHost* view = content::RenderViewHost::From( |
| - const_cast<content::RenderWidgetHost*>(widget)); |
| - view->NotifyTimezoneChange(); |
| - } |
| + content::RenderWidgetHost::List widgets = |
| + content::RenderWidgetHost::GetRenderWidgetHosts(); |
| + for (content::RenderWidgetHost::List::const_iterator it = widgets.begin(); |
|
jam
2013/06/12 19:59:59
ditto
nasko
2013/06/12 21:18:59
Done.
|
| + it != widgets.end(); ++it) { |
| + const content::RenderWidgetHost* widget = *it; |
| + if (widget->IsRenderView()) { |
| + content::RenderViewHost* view = content::RenderViewHost::From( |
| + const_cast<content::RenderWidgetHost*>(widget)); |
| + view->NotifyTimezoneChange(); |
| } |
| } |
| } |