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

Unified Diff: chrome/browser/chromeos/system/timezone_settings.cc

Issue 16431010: Refactor RenderProcessHost to use IPC::Listener instead of RenderWidgetHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing Windows compile error. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
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();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698