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/ui/browser_list.h" | 5 #include "chrome/browser/ui/browser_list.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/chrome_browser_application_mac.h" | 29 #include "chrome/browser/chrome_browser_application_mac.h" |
30 #endif | 30 #endif |
31 | 31 |
32 #if defined(OS_CHROMEOS) | 32 #if defined(OS_CHROMEOS) |
33 #include "chrome/browser/chromeos/boot_times_loader.h" | 33 #include "chrome/browser/chromeos/boot_times_loader.h" |
34 #include "chrome/browser/chromeos/cros/cros_library.h" | 34 #include "chrome/browser/chromeos/cros/cros_library.h" |
35 #include "chrome/browser/chromeos/cros/update_library.h" | 35 #include "chrome/browser/chromeos/cros/update_library.h" |
36 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 36 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" |
37 #include "chrome/browser/chromeos/dbus/session_manager_client.h" | 37 #include "chrome/browser/chromeos/dbus/session_manager_client.h" |
38 #if defined(TOOLKIT_USES_GTK) | 38 #if defined(TOOLKIT_USES_GTK) |
39 #include "chrome/browser/chromeos/wm_ipc.h" | 39 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" |
40 #endif | 40 #endif |
41 #endif | 41 #endif |
42 | 42 |
43 namespace { | 43 namespace { |
44 | 44 |
45 // This object is instantiated when the first Browser object is added to the | 45 // This object is instantiated when the first Browser object is added to the |
46 // list and delete when the last one is removed. It watches for loads and | 46 // list and delete when the last one is removed. It watches for loads and |
47 // creates histograms of some global object counts. | 47 // creates histograms of some global object counts. |
48 class BrowserActivityObserver : public content::NotificationObserver { | 48 class BrowserActivityObserver : public content::NotificationObserver { |
49 public: | 49 public: |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 // If no more TabContents from Browsers, check the BackgroundPrintingManager. | 815 // If no more TabContents from Browsers, check the BackgroundPrintingManager. |
816 while (bg_printing_iterator_ != GetBackgroundPrintingManager()->end()) { | 816 while (bg_printing_iterator_ != GetBackgroundPrintingManager()->end()) { |
817 cur_ = *bg_printing_iterator_; | 817 cur_ = *bg_printing_iterator_; |
818 CHECK(cur_); | 818 CHECK(cur_); |
819 ++bg_printing_iterator_; | 819 ++bg_printing_iterator_; |
820 return; | 820 return; |
821 } | 821 } |
822 // Reached the end - no more TabContents. | 822 // Reached the end - no more TabContents. |
823 cur_ = NULL; | 823 cur_ = NULL; |
824 } | 824 } |
OLD | NEW |