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

Unified Diff: chrome/browser/extensions/user_script_listener.h

Issue 995007: Fix a crash due to UserScriptListener unregistering notifications on the wrong (Closed)
Patch Set: Created 10 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/extensions/user_script_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/user_script_listener.h
diff --git a/chrome/browser/extensions/user_script_listener.h b/chrome/browser/extensions/user_script_listener.h
index f24bd05ccccd5ec4957325e7d85e2a7f0b885682..f10240be816ffd7ec7bbcfd423390bff4d343b07 100644
--- a/chrome/browser/extensions/user_script_listener.h
+++ b/chrome/browser/extensions/user_script_listener.h
@@ -30,6 +30,10 @@ class UserScriptListener
public:
explicit UserScriptListener(ResourceQueue* resource_queue);
+ // Call this to do necessary cleanup on the main thread before the object
+ // is deleted.
+ void ShutdownMainThread();
Paweł Hajdan Jr. 2010/03/18 07:47:54 The object is constructed on the UI thread, and cu
Matt Perry 2010/03/18 18:00:55 That doesn't work, because the object is deleted s
+
// ResourceQueueDelegate:
virtual bool ShouldDelayRequest(
URLRequest* request,
« no previous file with comments | « no previous file | chrome/browser/extensions/user_script_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698