| 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(
|
|
|