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

Side by Side Diff: chrome/browser/component_updater/pnacl/pnacl_updater_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_updater_observer.h" 5 #include "chrome/browser/component_updater/pnacl/pnacl_updater_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 PnaclUpdaterObserver::PnaclUpdaterObserver( 12 PnaclUpdaterObserver::PnaclUpdaterObserver(
13 PnaclComponentInstaller* installer) : pnacl_installer_(installer) { 13 PnaclComponentInstaller* installer) : pnacl_installer_(installer) {
14 registrar_.Add(this, 14 registrar_.Add(this,
15 chrome::NOTIFICATION_COMPONENT_UPDATER_SLEEPING, 15 chrome::NOTIFICATION_COMPONENT_UPDATER_SLEEPING,
16 content::NotificationService::AllSources()); 16 content::NotificationService::AllSources());
17 } 17 }
18 18
19 PnaclUpdaterObserver::~PnaclUpdaterObserver() { } 19 PnaclUpdaterObserver::~PnaclUpdaterObserver() { }
20 20
21 void PnaclUpdaterObserver::Observe( 21 void PnaclUpdaterObserver::Observe(
22 int type, 22 int type,
23 const content::NotificationSource& source, 23 const content::NotificationSource& source,
24 const content::NotificationDetails& details) { 24 const content::NotificationDetails& details) {
25 if (type == chrome::NOTIFICATION_COMPONENT_UPDATER_SLEEPING) { 25 if (type == chrome::NOTIFICATION_COMPONENT_UPDATER_SLEEPING) {
26 // If the component updater sleeps before a NotifyInstallSuccess, 26 // If the component updater sleeps before a NotifyInstallSuccess,
27 // then requests for installs were likely skipped, or an error occurred. 27 // then requests for installs were likely skipped, or an error occurred.
28 pnacl_installer_->NotifyInstallError(); 28 pnacl_installer_->NotifyInstallError();
29 return; 29 return;
30 } 30 }
31 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698