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

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
Index: chrome/browser/chromeos/boot_times_loader.cc
===================================================================
--- chrome/browser/chromeos/boot_times_loader.cc (revision 91880)
+++ chrome/browser/chromeos/boot_times_loader.cc (working copy)
@@ -342,9 +342,9 @@
AddLoginTimeMarker("LoginStarted", false);
if (!have_registered_) {
have_registered_ = true;
- registrar_.Add(this, NotificationType::LOAD_START,
+ registrar_.Add(this, chrome::LOAD_START,
NotificationService::AllSources());
- registrar_.Add(this, NotificationType::LOGIN_AUTHENTICATION,
+ registrar_.Add(this, chrome::LOGIN_AUTHENTICATION,
NotificationService::AllSources());
}
}
@@ -360,18 +360,18 @@
}
void BootTimesLoader::Observe(
- NotificationType type,
+ int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::LOGIN_AUTHENTICATION) {
+ if (type == chrome::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::LOGIN_AUTHENTICATION,
NotificationService::AllSources());
}
- } else if (type == NotificationType::LOAD_START) {
+ } else if (type == chrome::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 +383,7 @@
AddLoginTimeMarker("LoginDone", true);
RecordCurrentStats(kChromeFirstRender);
// Post chrome first render stat.
- registrar_.Remove(this, NotificationType::LOAD_START,
+ registrar_.Remove(this, chrome::LOAD_START,
NotificationService::AllSources());
// Don't swamp the FILE thread right away.
BrowserThread::PostDelayedTask(

Powered by Google App Engine
This is Rietveld 408576698