X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fextensions%2Factive_tab_unittest.cc;h=735204c50f7ed5159dbef35fadfaa857b2c27f69;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=ce440d25da42f32c42652975ac1c56bc40bd6a5c;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/extensions/active_tab_unittest.cc b/src/chrome/browser/extensions/active_tab_unittest.cc index ce440d2..735204c 100644 --- a/src/chrome/browser/extensions/active_tab_unittest.cc +++ b/src/chrome/browser/extensions/active_tab_unittest.cc @@ -24,6 +24,7 @@ #include "content/public/common/frame_navigate_params.h" #include "content/public/common/page_transition_types.h" #include "content/public/test/test_browser_thread.h" +#include "extensions/browser/extension_registry.h" #include "extensions/common/extension.h" #include "extensions/common/extension_builder.h" #include "extensions/common/features/feature.h" @@ -290,13 +291,10 @@ TEST_F(ActiveTabTest, Uninstalling) { EXPECT_TRUE(IsAllowed(extension, google)); // Uninstalling the extension should clear its tab permissions. - UnloadedExtensionInfo details(extension.get(), - UnloadedExtensionInfo::REASON_DISABLE); - content::NotificationService::current()->Notify( - chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, - content::Source(Profile::FromBrowserContext( - web_contents()->GetBrowserContext())), - content::Details(&details)); + ExtensionRegistry* registry = + ExtensionRegistry::Get(web_contents()->GetBrowserContext()); + registry->TriggerOnUnloaded(extension.get(), + UnloadedExtensionInfo::REASON_DISABLE); // Note: can't EXPECT_FALSE(IsAllowed) here because uninstalled extensions // are just that... considered to be uninstalled, and the manager might