OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/extension_test_notification_observer.h" | 5 #include "chrome/browser/extensions/extension_test_notification_observer.h" |
6 | 6 |
7 #include "base/callback_list.h" | 7 #include "base/callback_list.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/extensions/extension_system.h" | |
10 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_window.h" | 11 #include "chrome/browser/ui/browser_window.h" |
13 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
14 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
15 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
16 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
| 16 #include "extensions/browser/extension_system.h" |
17 #include "extensions/browser/process_manager.h" | 17 #include "extensions/browser/process_manager.h" |
18 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
19 | 19 |
20 using extensions::Extension; | 20 using extensions::Extension; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 bool HasExtensionPageActionCountReachedTarget(LocationBarTesting* location_bar, | 24 bool HasExtensionPageActionCountReachedTarget(LocationBarTesting* location_bar, |
25 int target_page_action_count) { | 25 int target_page_action_count) { |
26 VLOG(1) << "Number of page actions: " << location_bar->PageActionCount(); | 26 VLOG(1) << "Number of page actions: " << location_bar->PageActionCount(); |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 case chrome::NOTIFICATION_EXTENSION_LOAD_ERROR: | 280 case chrome::NOTIFICATION_EXTENSION_LOAD_ERROR: |
281 VLOG(1) << "Got EXTENSION_LOAD_ERROR notification."; | 281 VLOG(1) << "Got EXTENSION_LOAD_ERROR notification."; |
282 ++extension_load_errors_observed_; | 282 ++extension_load_errors_observed_; |
283 break; | 283 break; |
284 | 284 |
285 default: | 285 default: |
286 NOTREACHED(); | 286 NOTREACHED(); |
287 break; | 287 break; |
288 } | 288 } |
289 } | 289 } |
OLD | NEW |