Index: trunk/src/chrome/browser/ui/panels/panel_browsertest.cc |
=================================================================== |
--- trunk/src/chrome/browser/ui/panels/panel_browsertest.cc (revision 284768) |
+++ trunk/src/chrome/browser/ui/panels/panel_browsertest.cc (working copy) |
@@ -37,7 +37,6 @@ |
#include "content/public/common/url_constants.h" |
#include "content/public/test/browser_test_utils.h" |
#include "content/test/net/url_request_mock_http_job.h" |
-#include "extensions/browser/extension_registry.h" |
#include "extensions/common/constants.h" |
#include "net/base/net_util.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -1419,12 +1418,12 @@ |
content::Source<Panel>(panel1)); |
// Send unload notification on the first extension. |
- extensions::ExtensionRegistry* registry = |
- extensions::ExtensionRegistry::Get(browser()->profile()); |
- registry->RemoveEnabled(extension->id()); |
- registry->TriggerOnUnloaded( |
- extension.get(), |
- extensions::UnloadedExtensionInfo::REASON_UNINSTALL); |
+ extensions::UnloadedExtensionInfo details( |
+ extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); |
+ content::NotificationService::current()->Notify( |
+ chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, |
+ content::Source<Profile>(browser()->profile()), |
+ content::Details<extensions::UnloadedExtensionInfo>(&details)); |
// Wait for the panels opened by the first extension to close. |
signal.Wait(); |