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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc

Issue 16007009: Remove all but one use of WeakPtrFactory::DetachFromThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify SGIVideoSyncProviderThreadShim ownership, removing unnecessary use of SupportsWeakPtr. Created 7 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
« no previous file with comments | « base/memory/weak_ptr_unittest.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc b/chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc
index ab0003bfcc8c39a777954122575676430741e548..6d0c73565acdf9cf0a4e9ddcb206d16bd4ad036d 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc
+++ b/chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc
@@ -98,9 +98,6 @@ RulesRegistryWithCache::RulesRegistryWithCache(
ui_part->reset(storage_on_ui_.get());
- // After construction, |this| continues to live only on |owner_thread|.
- weak_ptr_factory_.DetachFromThread();
-
storage_on_ui_->Init();
}
« no previous file with comments | « base/memory/weak_ptr_unittest.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698