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

Issue 995983002: Make LoadMonitoringExtensionHostQueue remove itself as an ExtensionHost observer at the correct tim… (Closed)

Created:
5 years, 9 months ago by not at google - send to devlin
Modified:
5 years, 9 months ago
Reviewers:
Yoyo Zhou
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/4eefc7b64335c6008a1e5218c230dadd733875a7 Cr-Commit-Position: refs/heads/master@{#320536}

Patch Set 1 #

Patch Set 2 : Add test, remove log #

Total comments: 6

Patch Set 3 : aha #

Total comments: 4

Patch Set 4 : roll back some stuff #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -103 lines) Patch
M chrome/browser/extensions/extension_view_host.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_view_mac.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_view_views.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/extension_host.h View 1 2 3 4 chunks +10 lines, -5 lines 0 comments Download
M extensions/browser/extension_host.cc View 1 2 3 6 chunks +41 lines, -31 lines 0 comments Download
M extensions/browser/lazy_background_task_queue.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/load_monitoring_extension_host_queue.h View 1 2 4 chunks +5 lines, -8 lines 0 comments Download
M extensions/browser/load_monitoring_extension_host_queue.cc View 1 2 5 chunks +9 lines, -22 lines 0 comments Download
M extensions/browser/load_monitoring_extension_host_queue_unittest.cc View 1 2 15 chunks +106 lines, -30 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
not at google - send to devlin
https://codereview.chromium.org/995983002/diff/20001/extensions/browser/load_monitoring_extension_host_queue.cc File extensions/browser/load_monitoring_extension_host_queue.cc (right): https://codereview.chromium.org/995983002/diff/20001/extensions/browser/load_monitoring_extension_host_queue.cc#newcode59 extensions/browser/load_monitoring_extension_host_queue.cc:59: host->AddDeferredStartRenderHostObserver(this); I moved this out of the "if (waiting_loading_.insert(host).second)" ...
5 years, 9 months ago (2015-03-10 22:26:07 UTC) #1
Yoyo Zhou
https://codereview.chromium.org/995983002/diff/20001/extensions/browser/extension_host.cc File extensions/browser/extension_host.cc (right): https://codereview.chromium.org/995983002/diff/20001/extensions/browser/extension_host.cc#newcode281 extensions/browser/extension_host.cc:281: CHECK(!did_stop_loading_); I think this is wrong. Say the background ...
5 years, 9 months ago (2015-03-10 22:48:13 UTC) #2
not at google - send to devlin
Alright! Done. Made a few more changes along the way to help future confusees. https://codereview.chromium.org/995983002/diff/20001/extensions/browser/extension_host.cc ...
5 years, 9 months ago (2015-03-12 22:46:51 UTC) #7
Yoyo Zhou
LGTM https://codereview.chromium.org/995983002/diff/120001/chrome/browser/extensions/extension_view_host.cc File chrome/browser/extensions/extension_view_host.cc (right): https://codereview.chromium.org/995983002/diff/120001/chrome/browser/extensions/extension_view_host.cc#newcode102 chrome/browser/extensions/extension_view_host.cc:102: DCHECK(has_loaded_once()); Should this be is_loading? (I mean, it's ...
5 years, 9 months ago (2015-03-12 22:57:29 UTC) #8
not at google - send to devlin
Found a little bug, this is pretty similar to the last patch so putting though ...
5 years, 9 months ago (2015-03-12 23:29:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/995983002/160001
5 years, 9 months ago (2015-03-12 23:29:48 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/49375)
5 years, 9 months ago (2015-03-12 23:51:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/995983002/160001
5 years, 9 months ago (2015-03-13 16:38:34 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:160001)
5 years, 9 months ago (2015-03-13 18:29:22 UTC) #18
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/4eefc7b64335c6008a1e5218c230dadd733875a7 Cr-Commit-Position: refs/heads/master@{#320536}
5 years, 9 months ago (2015-03-13 18:30:15 UTC) #19
not at google - send to devlin
5 years, 9 months ago (2015-03-16 17:06:30 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:160001) has been created in
https://codereview.chromium.org/1012823002/ by kalman@chromium.org.

The reason for reverting is: Crashes (see crbug.com/467353)..

Powered by Google App Engine
This is Rietveld 408576698