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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 2925973002: Migrate upgrade notifications to observer (Closed)
Patch Set: Add DISALLOW_COPY_AND_ASSIGN Created 3 years, 6 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/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 2dca7c327556fcd75feef916443ac8d3af505bd7..a22448b8677804827139c920799cda03e737f4e4 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -22,6 +22,7 @@
#include "chrome/browser/extensions/extension_management.h"
#include "chrome/browser/extensions/install_gate.h"
#include "chrome/browser/extensions/pending_extension_manager.h"
+#include "chrome/browser/upgrade_observer.h"
#include "components/sync/model/string_ordinal.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -180,7 +181,8 @@ class ExtensionService
public extensions::ExternalProviderInterface::VisitorInterface,
public content::NotificationObserver,
public extensions::Blacklist::Observer,
- public extensions::ExtensionManagement::Observer {
+ public extensions::ExtensionManagement::Observer,
+ public UpgradeObserver {
public:
// Attempts to uninstall an extension from a given ExtensionService. Returns
// true iff the target extension exists.
@@ -462,6 +464,9 @@ class ExtensionService
// extensions::Blacklist::Observer implementation.
void OnBlacklistUpdated() override;
+ // UpgradeObserver implementation.
+ void OnUpgradeRecommended() override;
+
// Similar to FinishInstallation, but first checks if there still is an update
// pending for the extension, and makes sure the extension is still idle.
void MaybeFinishDelayedInstallation(const std::string& extension_id);
« no previous file with comments | « chrome/browser/chromeos/upgrade_detector_chromeos.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698