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 4f59057b02f41349b2d4ca59fddd5b631f759bee..54170eeef3579cdb7395db8f024a0d88edfa4b92 100644 |
--- a/chrome/browser/chromeos/system/timezone_settings.cc |
+++ b/chrome/browser/chromeos/system/timezone_settings.cc |
@@ -352,21 +352,12 @@ 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 (size_t i = 0; i < widgets.size(); ++i) { |
+ if (widgets[i]->IsRenderView()) { |
+ content::RenderViewHost* view = content::RenderViewHost::From(widgets[i]); |
+ view->NotifyTimezoneChange(); |
} |
} |
} |