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

Unified Diff: chrome/browser/component_updater/pnacl/pnacl_profile_observer.cc

Issue 338403002: Remove pnacl_profile_observer from pnacl's use of component updater. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « chrome/browser/component_updater/pnacl/pnacl_profile_observer.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/pnacl/pnacl_profile_observer.cc
diff --git a/chrome/browser/component_updater/pnacl/pnacl_profile_observer.cc b/chrome/browser/component_updater/pnacl/pnacl_profile_observer.cc
deleted file mode 100644
index da5d055893e747c83a7bbd9b22f193dff002c250..0000000000000000000000000000000000000000
--- a/chrome/browser/component_updater/pnacl/pnacl_profile_observer.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/component_updater/pnacl/pnacl_profile_observer.h"
-
-#include "base/logging.h"
-#include "chrome/browser/chrome_notification_types.h"
-#include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h"
-#include "content/public/browser/notification_service.h"
-
-namespace component_updater {
-
-PnaclProfileObserver::PnaclProfileObserver(PnaclComponentInstaller* installer)
- : pnacl_installer_(installer) {
-// We only need to observe NOTIFICATION_LOGIN_USER_CHANGED for ChromeOS
-// (and it's only defined for ChromeOS).
-#if defined(OS_CHROMEOS)
- registrar_.Add(this,
- chrome::NOTIFICATION_LOGIN_USER_CHANGED,
- content::NotificationService::AllSources());
-#endif
-}
-
-PnaclProfileObserver::~PnaclProfileObserver() {
-}
-
-void PnaclProfileObserver::Observe(
- int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) {
-#if defined(OS_CHROMEOS)
- if (type == chrome::NOTIFICATION_LOGIN_USER_CHANGED) {
- pnacl_installer_->ReRegisterPnacl();
- return;
- }
- NOTREACHED() << "Unexpected notification observed";
-#endif
-}
-
-} // namespace component_updater
« no previous file with comments | « chrome/browser/component_updater/pnacl/pnacl_profile_observer.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698