OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/ui/browser.h" | 26 #include "chrome/browser/ui/browser.h" |
27 #include "chrome/browser/ui/browser_list.h" | 27 #include "chrome/browser/ui/browser_list.h" |
28 #include "chrome/common/chrome_notification_types.h" | 28 #include "chrome/common/chrome_notification_types.h" |
29 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
30 #include "content/browser/renderer_host/render_widget_host_view.h" | 30 #include "content/browser/renderer_host/render_widget_host_view.h" |
31 #include "content/browser/tab_contents/navigation_controller.h" | 31 #include "content/browser/tab_contents/navigation_controller.h" |
32 #include "content/browser/tab_contents/tab_contents.h" | 32 #include "content/browser/tab_contents/tab_contents.h" |
33 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
34 #include "content/public/browser/notification_service.h" | 34 #include "content/public/browser/notification_service.h" |
35 | 35 |
| 36 using content::BrowserThread; |
| 37 |
36 namespace { | 38 namespace { |
37 | 39 |
38 RenderWidgetHost* GetRenderWidgetHost(NavigationController* tab) { | 40 RenderWidgetHost* GetRenderWidgetHost(NavigationController* tab) { |
39 TabContents* tab_contents = tab->tab_contents(); | 41 TabContents* tab_contents = tab->tab_contents(); |
40 if (tab_contents) { | 42 if (tab_contents) { |
41 RenderWidgetHostView* render_widget_host_view = | 43 RenderWidgetHostView* render_widget_host_view = |
42 tab_contents->GetRenderWidgetHostView(); | 44 tab_contents->GetRenderWidgetHostView(); |
43 if (render_widget_host_view) | 45 if (render_widget_host_view) |
44 return render_widget_host_view->GetRenderWidgetHost(); | 46 return render_widget_host_view->GetRenderWidgetHost(); |
45 } | 47 } |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 GetRenderWidgetHost(&tab_contents->controller()); | 479 GetRenderWidgetHost(&tab_contents->controller()); |
478 render_widget_hosts_loading_.erase(render_widget_host); | 480 render_widget_hosts_loading_.erase(render_widget_host); |
479 break; | 481 break; |
480 } | 482 } |
481 default: | 483 default: |
482 break; | 484 break; |
483 } | 485 } |
484 } | 486 } |
485 | 487 |
486 } // namespace chromeos | 488 } // namespace chromeos |
OLD | NEW |