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

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: rebase again 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 54%
copy from chrome/browser/component_updater/pnacl/pnacl_profile_observer.h
copy to chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
index 18ef4e804360e63f9b9c19680974a521c7b9567f..48a6f0d9c81cbceb527da5478be4d0220ec1638f 100644
--- a/chrome/browser/component_updater/pnacl/pnacl_profile_observer.h
+++ b/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
@@ -2,8 +2,8 @@
// 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 "base/compiler_specific.h"
#include "content/public/browser/notification_observer.h"
@@ -11,12 +11,12 @@
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,
@@ -26,7 +26,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