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

Unified Diff: chrome/browser/ui/browser_browsertest.cc

Issue 398083002: Add "UninstallReason" parameter to ExtensionRegistryObserver::OnExtensionUninstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: chrome/browser/ui/browser_browsertest.cc
diff --git a/chrome/browser/ui/browser_browsertest.cc b/chrome/browser/ui/browser_browsertest.cc
index 0585f14b8fcbf2d07b270c3f08f1e42f75a4fd70..7e383e320df6254bec5968214f5b0385ca192ed8 100644
--- a/chrome/browser/ui/browser_browsertest.cc
+++ b/chrome/browser/ui/browser_browsertest.cc
@@ -109,6 +109,7 @@ using content::Referrer;
using content::WebContents;
using content::WebContentsObserver;
using extensions::Extension;
+using extensions::UninstalledExtensionInfo;
namespace {
@@ -1307,9 +1308,8 @@ IN_PROC_BROWSER_TEST_F(BrowserTest, MAYBE_TabClosingWhenRemovingExtension) {
// Uninstall the extension and make sure TabClosing is sent.
ExtensionService* service = extensions::ExtensionSystem::Get(
browser()->profile())->extension_service();
- service->UninstallExtension(GetExtension()->id(),
- ExtensionService::UNINSTALL_REASON_FOR_TESTING,
- NULL);
+ service->UninstallExtension(
+ GetExtension()->id(), UninstalledExtensionInfo::REASON_FOR_TESTING, NULL);
EXPECT_EQ(1, observer.closing_count());
model->RemoveObserver(&observer);

Powered by Google App Engine
This is Rietveld 408576698