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

Unified Diff: chrome/browser/apps/drive/drive_app_provider.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/apps/drive/drive_app_provider.cc
diff --git a/chrome/browser/apps/drive/drive_app_provider.cc b/chrome/browser/apps/drive/drive_app_provider.cc
index 3aeb5a03e001a0834f533c2d5bff442918aa1234..d89239fdcaa448c35b73965d2e1897f478d8be50 100644
--- a/chrome/browser/apps/drive/drive_app_provider.cc
+++ b/chrome/browser/apps/drive/drive_app_provider.cc
@@ -25,6 +25,7 @@
using extensions::Extension;
using extensions::ExtensionRegistry;
+using extensions::UninstalledExtensionInfo;
namespace {
@@ -83,7 +84,7 @@ void DriveAppProvider::UpdateMappingAndExtensionSystem(
extensions::ExtensionSystem::Get(profile_)
->extension_service()
->UninstallExtension(existing_chrome_app_id,
- ExtensionService::UNINSTALL_REASON_SYNC,
+ UninstalledExtensionInfo::REASON_SYNC,
NULL);
}
}
@@ -194,7 +195,7 @@ void DriveAppProvider::ProcessRemovedDriveApp(const std::string& drive_app_id) {
extensions::ExtensionSystem::Get(profile_)
->extension_service()
->UninstallExtension(
- chrome_app_id, ExtensionService::UNINSTALL_REASON_SYNC, NULL);
+ chrome_app_id, UninstalledExtensionInfo::REASON_SYNC, NULL);
}
void DriveAppProvider::OnDriveAppRegistryUpdated() {
« no previous file with comments | « no previous file | chrome/browser/apps/ephemeral_app_browsertest.cc » ('j') | chrome/browser/chrome_notification_types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698