Make LoadMonitoringExtensionHostQueue remove itself as an ExtensionHost observer...
commit4eefc7b64335c6008a1e5218c230dadd733875a7
authorkalman <kalman@chromium.org>
Fri, 13 Mar 2015 18:29:14 +0000 (13 11:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 13 Mar 2015 18:29:49 +0000 (13 18:29 +0000)
treee7cd99f6bfa04687d5b0867515d030f24c32c8b8
parent4f135a0ffe10bacb034cfd2ad726f15a25416c56
Make LoadMonitoringExtensionHostQueue remove itself as an ExtensionHost observer at the correct time.

"Extensions.ExtensionHostMonitoring.NumLoaded" UMA is now correctly recorded.
I also cleaned up ExtensionHost a little to make it more obvious.

R=yoz@chromium.org
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/995983002

Cr-Commit-Position: refs/heads/master@{#320536}
chrome/browser/extensions/extension_view_host.cc
chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
chrome/browser/ui/cocoa/extensions/extension_view_mac.mm
chrome/browser/ui/views/extensions/extension_popup.cc
chrome/browser/ui/views/extensions/extension_view_views.cc
extensions/browser/extension_host.cc
extensions/browser/extension_host.h
extensions/browser/lazy_background_task_queue.cc
extensions/browser/load_monitoring_extension_host_queue.cc
extensions/browser/load_monitoring_extension_host_queue.h
extensions/browser/load_monitoring_extension_host_queue_unittest.cc