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

Unified Diff: chrome/browser/component_updater/pnacl/pnacl_updater_observer.h

Issue 18006003: Consistently use notifications from component updater w/ on-demand PNaCl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 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/component_updater/pnacl/pnacl_updater_observer.h
diff --git a/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h b/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
index 48a6f0d9c81cbceb527da5478be4d0220ec1638f..598aa443d1668b59e909147f07efa1019790c501 100644
--- a/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
+++ b/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
@@ -18,10 +18,15 @@ class PnaclUpdaterObserver : public content::NotificationObserver {
explicit PnaclUpdaterObserver(PnaclComponentInstaller* installer);
virtual ~PnaclUpdaterObserver();
- virtual void Observe(
- int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ // Make sure that this has registered to observe relevant notifications.
+ void EnsureObserving();
+
+ // Unregister for observing notifcations.
+ void StopObserving();
+
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
private:
content::NotificationRegistrar registrar_;

Powered by Google App Engine
This is Rietveld 408576698