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

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

Issue 17001003: Replace early check for PNaCl with an on-demand check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: observer instead of timeout 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_profile_observer.h b/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
similarity index 53%
copy from chrome/browser/component_updater/pnacl/pnacl_profile_observer.h
copy to chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
index 52ab9847dc1407dc2a66e8e3e6de445d262f8cee..f76668328bd25b21ecc345eb5be5671815fcbfe9 100644
--- a/chrome/browser/component_updater/pnacl/pnacl_profile_observer.h
+++ b/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
@@ -2,20 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_
-#define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_
+#ifndef CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_UPDATER_OBSERVER_H_
+#define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_UPDATER_OBSERVER_H_
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
class PnaclComponentInstaller;
-// Monitors profile switching for ChromeOS to check the per-user
-// version of PNaCl.
-class PnaclProfileObserver : public content::NotificationObserver {
+// Monitors the component updater service, so that the callbacks registered
+// against the PnaclComponentInstaller can be notified of events.
+class PnaclUpdaterObserver : public content::NotificationObserver {
public:
- explicit PnaclProfileObserver(PnaclComponentInstaller* installer);
- virtual ~PnaclProfileObserver();
+ explicit PnaclUpdaterObserver(PnaclComponentInstaller* installer);
+ virtual ~PnaclUpdaterObserver();
virtual void Observe(
int type,
@@ -25,7 +25,7 @@ class PnaclProfileObserver : public content::NotificationObserver {
private:
content::NotificationRegistrar registrar_;
PnaclComponentInstaller* pnacl_installer_;
- DISALLOW_COPY_AND_ASSIGN(PnaclProfileObserver);
+ DISALLOW_COPY_AND_ASSIGN(PnaclUpdaterObserver);
};
-#endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_
+#endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_UPDATER_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698