diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 21:19:57 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 21:19:57 +0000 |
commit | a5b04d1c6d10a3a6a1a246342761e55382da711b (patch) | |
tree | 9660a03b21f18ad1cb1eedfeaf5b4f053ccb5f87 /chrome/browser/net | |
parent | 69a680223700fc62ee97eae634a8f4921ae7c587 (diff) | |
download | chromium_src-a5b04d1c6d10a3a6a1a246342761e55382da711b.zip chromium_src-a5b04d1c6d10a3a6a1a246342761e55382da711b.tar.gz chromium_src-a5b04d1c6d10a3a6a1a246342761e55382da711b.tar.bz2 |
TBR: Revert "Hook up more of extension uninstall."
This reverts commit 5b2fc12fbca26b20ed4176ac740c58fe49360c4a.
Review URL: http://codereview.chromium.org/113664
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16538 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.cc | 18 | ||||
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.h | 3 |
2 files changed, 0 insertions, 21 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc index ae75216..3ea9cc1 100644 --- a/chrome/browser/net/chrome_url_request_context.cc +++ b/chrome/browser/net/chrome_url_request_context.cc @@ -312,9 +312,6 @@ ChromeURLRequestContext::ChromeURLRequestContext(Profile* profile) NotificationService::current()->AddObserver( this, NotificationType::EXTENSIONS_LOADED, NotificationService::AllSources()); - NotificationService::current()->AddObserver( - this, NotificationType::EXTENSION_UNLOADED, - NotificationService::AllSources()); } // NotificationObserver implementation. @@ -352,11 +349,6 @@ void ChromeURLRequestContext::Observe(NotificationType type, g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(this, &ChromeURLRequestContext::OnNewExtensions, new_paths)); - } else if (NotificationType::EXTENSION_UNLOADED == type) { - Extension* extension = Details<Extension>(details).ptr(); - g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, - NewRunnableMethod(this, &ChromeURLRequestContext::OnUnloadedExtension, - extension->id())); } else { NOTREACHED(); } @@ -371,9 +363,6 @@ void ChromeURLRequestContext::CleanupOnUIThread() { NotificationService::current()->RemoveObserver( this, NotificationType::EXTENSIONS_LOADED, NotificationService::AllSources()); - NotificationService::current()->RemoveObserver( - this, NotificationType::EXTENSION_UNLOADED, - NotificationService::AllSources()); } FilePath ChromeURLRequestContext::GetPathForExtension(const std::string& id) { @@ -410,13 +399,6 @@ void ChromeURLRequestContext::OnNewExtensions(ExtensionPaths* new_paths) { delete new_paths; } -void ChromeURLRequestContext::OnUnloadedExtension( - const std::string& extension_id) { - ExtensionPaths::iterator iter = extension_paths_.find(extension_id); - DCHECK(iter != extension_paths_.end()); - extension_paths_.erase(iter); -} - ChromeURLRequestContext::~ChromeURLRequestContext() { DCHECK(NULL == prefs_); diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h index d5024c1..55af609 100644 --- a/chrome/browser/net/chrome_url_request_context.h +++ b/chrome/browser/net/chrome_url_request_context.h @@ -94,9 +94,6 @@ class ChromeURLRequestContext : public URLRequestContext, // Callback for when new extensions are loaded. void OnNewExtensions(ExtensionPaths* new_paths); - // Callback for when an extension is unloaded. - void OnUnloadedExtension(const std::string& id); - // Destructor. virtual ~ChromeURLRequestContext(); |