Index: ash/touch/touch_hud_debug.cc |
diff --git a/ash/touch/touch_hud_debug.cc b/ash/touch/touch_hud_debug.cc |
index fa40050b66dcdad8f32963c30dbbf18be6eafbc2..dc63d0b8bae84fafd40c63a2600e950cb314318d 100644 |
--- a/ash/touch/touch_hud_debug.cc |
+++ b/ash/touch/touch_hud_debug.cc |
@@ -357,10 +357,8 @@ TouchHudDebug::~TouchHudDebug() {} |
std::unique_ptr<base::DictionaryValue> TouchHudDebug::GetAllAsDictionary() { |
std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); |
aura::Window::Windows roots = Shell::Get()->GetAllRootWindows(); |
- for (aura::Window::Windows::iterator iter = roots.begin(); |
- iter != roots.end(); ++iter) { |
- RootWindowController* controller = GetRootWindowController(*iter); |
- TouchHudDebug* hud = controller->touch_hud_debug(); |
+ for (RootWindowController* root : Shell::GetAllRootWindowControllers()) { |
+ TouchHudDebug* hud = root->touch_hud_debug(); |
if (hud) { |
std::unique_ptr<base::ListValue> list = hud->GetLogAsList(); |
if (!list->empty()) |