| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/app_mode/kiosk_session_plugin_handler.h" | 5 #include "chrome/browser/chromeos/app_mode/kiosk_session_plugin_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
| 11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
| 12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 13 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 14 #include "chrome/browser/chromeos/app_mode/kiosk_session_plugin_handler_delegate
.h" | 15 #include "chrome/browser/chromeos/app_mode/kiosk_session_plugin_handler_delegate
.h" |
| 15 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
| 16 | 17 |
| 17 namespace chromeos { | 18 namespace chromeos { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 if (it == watchers_.end()) | 121 if (it == watchers_.end()) |
| 121 return; | 122 return; |
| 122 | 123 |
| 123 watchers_.weak_erase(it); | 124 watchers_.weak_erase(it); |
| 124 | 125 |
| 125 // Schedule the delete later after |observer|'s WebContentsDestroyed finishes. | 126 // Schedule the delete later after |observer|'s WebContentsDestroyed finishes. |
| 126 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, observer); | 127 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, observer); |
| 127 } | 128 } |
| 128 | 129 |
| 129 } // namespace chromeos | 130 } // namespace chromeos |
| OLD | NEW |