| 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..2c6f17637385f98fce8c88b009f6a6c37288641c 100644
|
| --- a/chrome/browser/chromeos/system/timezone_settings.cc
|
| +++ b/chrome/browser/chromeos/system/timezone_settings.cc
|
| @@ -352,21 +352,16 @@ 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();
|
| - }
|
| + scoped_ptr<content::RenderWidgetHost::List> hosts =
|
| + content::RenderWidgetHost::GetRenderWidgetHosts();
|
| + for (content::RenderWidgetHost::List::const_iterator it = hosts->begin();
|
| + it != hosts->end();
|
| + ++it) {
|
| + const content::RenderWidgetHost* widget = *it;
|
| + if (widget->IsRenderView()) {
|
| + content::RenderViewHost* view = content::RenderViewHost::From(
|
| + const_cast<content::RenderWidgetHost*>(widget));
|
| + view->NotifyTimezoneChange();
|
| }
|
| }
|
| }
|
|
|