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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/stringprintf.h" | 6 #include "base/stringprintf.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/task_manager/resource_provider.h" | 10 #include "chrome/browser/task_manager/resource_provider.h" |
11 #include "chrome/browser/task_manager/task_manager.h" | 11 #include "chrome/browser/task_manager/task_manager.h" |
12 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" | 12 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/browser_dialogs.h" | 14 #include "chrome/browser/ui/browser_dialogs.h" |
15 #include "chrome/browser/ui/browser_window.h" | 15 #include "chrome/browser/ui/browser_window.h" |
16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
17 #include "chrome/test/base/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // This check has to be placed after the installation of the observer, | 87 // This check has to be placed after the installation of the observer, |
88 // because resources may change before that. | 88 // because resources may change before that. |
89 if (GetWebResourceCount(model) == target_count) { | 89 if (GetWebResourceCount(model) == target_count) { |
90 model->RemoveObserver(&observer); | 90 model->RemoveObserver(&observer); |
91 return; | 91 return; |
92 } | 92 } |
93 | 93 |
94 content::RunMessageLoop(); | 94 content::RunMessageLoop(); |
95 model->RemoveObserver(&observer); | 95 model->RemoveObserver(&observer); |
96 } | 96 } |
OLD | NEW |