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

Unified Diff: trunk/src/chrome/browser/ui/panels/panel_browsertest.cc

Issue 409983002: Revert 284725 "Use ExtensionRegistryObserver instead of DEPRECAT..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 | « trunk/src/chrome/browser/ui/panels/panel.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « trunk/src/chrome/browser/ui/panels/panel.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698