| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/boot_times_loader.h" | 5 #include "chrome/browser/chromeos/boot_times_loader.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 render_widget_hosts_loading_.end()) { | 507 render_widget_hosts_loading_.end()) { |
| 508 AddLoginTimeMarker("TabLoad-End: " + GetTabUrl(rwh), false); | 508 AddLoginTimeMarker("TabLoad-End: " + GetTabUrl(rwh), false); |
| 509 } | 509 } |
| 510 break; | 510 break; |
| 511 } | 511 } |
| 512 case content::NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE: { | 512 case content::NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE: { |
| 513 RenderWidgetHost* rwh = content::Source<RenderWidgetHost>(source).ptr(); | 513 RenderWidgetHost* rwh = content::Source<RenderWidgetHost>(source).ptr(); |
| 514 if (render_widget_hosts_loading_.find(rwh) != | 514 if (render_widget_hosts_loading_.find(rwh) != |
| 515 render_widget_hosts_loading_.end()) { | 515 render_widget_hosts_loading_.end()) { |
| 516 AddLoginTimeMarker("TabPaint: " + GetTabUrl(rwh), false); | 516 AddLoginTimeMarker("TabPaint: " + GetTabUrl(rwh), false); |
| 517 LoginDone(UserManager::Get()->IsCurrentUserNew()); | 517 LoginDone(GetUserManager()->IsCurrentUserNew()); |
| 518 } | 518 } |
| 519 break; | 519 break; |
| 520 } | 520 } |
| 521 case content::NOTIFICATION_WEB_CONTENTS_DESTROYED: { | 521 case content::NOTIFICATION_WEB_CONTENTS_DESTROYED: { |
| 522 WebContents* web_contents = content::Source<WebContents>(source).ptr(); | 522 WebContents* web_contents = content::Source<WebContents>(source).ptr(); |
| 523 RenderWidgetHost* render_widget_host = | 523 RenderWidgetHost* render_widget_host = |
| 524 GetRenderWidgetHost(&web_contents->GetController()); | 524 GetRenderWidgetHost(&web_contents->GetController()); |
| 525 render_widget_hosts_loading_.erase(render_widget_host); | 525 render_widget_hosts_loading_.erase(render_widget_host); |
| 526 break; | 526 break; |
| 527 } | 527 } |
| 528 default: | 528 default: |
| 529 break; | 529 break; |
| 530 } | 530 } |
| 531 } | 531 } |
| 532 | 532 |
| 533 } // namespace chromeos | 533 } // namespace chromeos |
| OLD | NEW |