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

Unified Diff: extensions/browser/extension_registry_unittest.cc

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 8 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 | « extensions/browser/extension_registry_observer.h ('k') | extensions/browser/extension_system.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_registry_unittest.cc
diff --git a/extensions/browser/extension_registry_unittest.cc b/extensions/browser/extension_registry_unittest.cc
index 995df1671978454e369ef658e272e03db2c80fb4..fbf34c0cb6f49d541ecd6cc5a9687d41a0449b08 100644
--- a/extensions/browser/extension_registry_unittest.cc
+++ b/extensions/browser/extension_registry_unittest.cc
@@ -59,7 +59,7 @@ class TestObserver : public ExtensionRegistryObserver {
void OnExtensionUnloaded(content::BrowserContext* browser_context,
const Extension* extension,
- UnloadedExtensionInfo::Reason reason) override {
+ UnloadedExtensionReason reason) override {
unloaded_.push_back(extension);
}
@@ -259,8 +259,7 @@ TEST_F(ExtensionRegistryTest, Observer) {
registry.Shutdown();
registry.RemoveEnabled(extension->id());
- registry.TriggerOnUnloaded(extension.get(),
- UnloadedExtensionInfo::REASON_DISABLE);
+ registry.TriggerOnUnloaded(extension.get(), UnloadedExtensionReason::DISABLE);
EXPECT_TRUE(observer.loaded().empty());
EXPECT_TRUE(HasSingleExtension(observer.unloaded(), extension.get()));
« no previous file with comments | « extensions/browser/extension_registry_observer.h ('k') | extensions/browser/extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698