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

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: Rebase on top of hash_pair move. 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/processes/processes_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
}
« no previous file with comments | « no previous file | chrome/browser/extensions/api/processes/processes_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698