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

Unified Diff: chrome/browser/chromeos/boot_times_loader.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/boot_times_loader.h ('k') | chrome/browser/chromeos/cros/login_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/boot_times_loader.cc
===================================================================
--- chrome/browser/chromeos/boot_times_loader.cc (revision 91971)
+++ chrome/browser/chromeos/boot_times_loader.cc (working copy)
@@ -23,6 +23,7 @@
#include "chrome/browser/chromeos/login/authentication_notification_details.h"
#include "chrome/browser/chromeos/login/user_manager.h"
#include "chrome/browser/chromeos/network_state_notifier.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_service.h"
@@ -342,9 +343,9 @@
AddLoginTimeMarker("LoginStarted", false);
if (!have_registered_) {
have_registered_ = true;
- registrar_.Add(this, NotificationType::LOAD_START,
+ registrar_.Add(this, content::NOTIFICATION_LOAD_START,
NotificationService::AllSources());
- registrar_.Add(this, NotificationType::LOGIN_AUTHENTICATION,
+ registrar_.Add(this, chrome::NOTIFICATION_LOGIN_AUTHENTICATION,
NotificationService::AllSources());
}
}
@@ -360,18 +361,18 @@
}
void BootTimesLoader::Observe(
- NotificationType type,
+ int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::LOGIN_AUTHENTICATION) {
+ if (type == chrome::NOTIFICATION_LOGIN_AUTHENTICATION) {
Details<AuthenticationNotificationDetails> auth_details(details);
if (auth_details->success()) {
AddLoginTimeMarker("Authenticate", true);
RecordCurrentStats(kLoginSuccess);
- registrar_.Remove(this, NotificationType::LOGIN_AUTHENTICATION,
+ registrar_.Remove(this, chrome::NOTIFICATION_LOGIN_AUTHENTICATION,
NotificationService::AllSources());
}
- } else if (type == NotificationType::LOAD_START) {
+ } else if (type == content::NOTIFICATION_LOAD_START) {
// Make sure it's not some page load initiated by OOBE/login screen.
if (!UserManager::Get()->user_is_logged_in())
return;
@@ -383,7 +384,7 @@
AddLoginTimeMarker("LoginDone", true);
RecordCurrentStats(kChromeFirstRender);
// Post chrome first render stat.
- registrar_.Remove(this, NotificationType::LOAD_START,
+ registrar_.Remove(this, content::NOTIFICATION_LOAD_START,
NotificationService::AllSources());
// Don't swamp the FILE thread right away.
BrowserThread::PostDelayedTask(
« no previous file with comments | « chrome/browser/chromeos/boot_times_loader.h ('k') | chrome/browser/chromeos/cros/login_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698