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

Side by Side Diff: chrome/browser/component_updater/pnacl/pnacl_profile_observer.cc

Issue 18640003: Updates some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/component_updater/pnacl/pnacl_profile_observer.h" 5 #include "chrome/browser/component_updater/pnacl/pnacl_profile_observer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" 9 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h"
9 #include "chrome/common/chrome_notification_types.h"
10 #include "content/public/browser/notification_service.h" 10 #include "content/public/browser/notification_service.h"
11 11
12 PnaclProfileObserver::PnaclProfileObserver( 12 PnaclProfileObserver::PnaclProfileObserver(
13 PnaclComponentInstaller* installer) : pnacl_installer_(installer) { 13 PnaclComponentInstaller* installer) : pnacl_installer_(installer) {
14 // We only need to observe NOTIFICATION_LOGIN_USER_CHANGED for ChromeOS 14 // We only need to observe NOTIFICATION_LOGIN_USER_CHANGED for ChromeOS
15 // (and it's only defined for ChromeOS). 15 // (and it's only defined for ChromeOS).
16 #if defined(OS_CHROMEOS) 16 #if defined(OS_CHROMEOS)
17 registrar_.Add(this, 17 registrar_.Add(this,
18 chrome::NOTIFICATION_LOGIN_USER_CHANGED, 18 chrome::NOTIFICATION_LOGIN_USER_CHANGED,
19 content::NotificationService::AllSources()); 19 content::NotificationService::AllSources());
20 #endif 20 #endif
21 } 21 }
22 22
23 PnaclProfileObserver::~PnaclProfileObserver() { } 23 PnaclProfileObserver::~PnaclProfileObserver() { }
24 24
25 void PnaclProfileObserver::Observe( 25 void PnaclProfileObserver::Observe(
26 int type, 26 int type,
27 const content::NotificationSource& source, 27 const content::NotificationSource& source,
28 const content::NotificationDetails& details) { 28 const content::NotificationDetails& details) {
29 #if defined(OS_CHROMEOS) 29 #if defined(OS_CHROMEOS)
30 if (type == chrome::NOTIFICATION_LOGIN_USER_CHANGED) { 30 if (type == chrome::NOTIFICATION_LOGIN_USER_CHANGED) {
31 pnacl_installer_->ReRegisterPnacl(); 31 pnacl_installer_->ReRegisterPnacl();
32 return; 32 return;
33 } 33 }
34 NOTREACHED() << "Unexpected notification observed"; 34 NOTREACHED() << "Unexpected notification observed";
35 #endif 35 #endif
36 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698