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

Unified Diff: chrome/browser/media/media_stream_capture_indicator.cc

Issue 257153003: We have a problem in the process on destroying WebContentsImpl because (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebased onto origin/master again, resolved conflicts Created 6 years, 7 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
Index: chrome/browser/media/media_stream_capture_indicator.cc
diff --git a/chrome/browser/media/media_stream_capture_indicator.cc b/chrome/browser/media/media_stream_capture_indicator.cc
index 24d92921075e3980e394d9b2fcf2378672a8b9c8..244a645bff07c3bdb7b9a3bf5a4ca33d9ab71b0e 100644
--- a/chrome/browser/media/media_stream_capture_indicator.cc
+++ b/chrome/browser/media/media_stream_capture_indicator.cc
@@ -161,8 +161,8 @@ class MediaStreamCaptureIndicator::WebContentsDeviceUsage
private:
// content::WebContentsObserver overrides.
- virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE {
- indicator_->UnregisterWebContents(web_contents);
+ virtual void WebContentsDestroyed() OVERRIDE {
+ indicator_->UnregisterWebContents(web_contents());
delete this;
}
« no previous file with comments | « chrome/browser/infobars/infobar_service.cc ('k') | chrome/browser/media_galleries/media_file_system_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698