OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/chrome_extension_test_notification_observer.
h> | 5 #include <chrome/browser/extensions/chrome_extension_test_notification_observer.
h> |
6 #include "base/scoped_observer.h" | 6 #include "base/scoped_observer.h" |
7 #include "chrome/browser/extensions/extension_action_test_util.h" | 7 #include "chrome/browser/extensions/extension_action_test_util.h" |
8 #include "chrome/browser/extensions/extension_util.h" | 8 #include "chrome/browser/extensions/extension_util.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
| 13 #include "content/public/browser/web_contents.h" |
13 #include "extensions/browser/notification_types.h" | 14 #include "extensions/browser/notification_types.h" |
14 #include "extensions/browser/process_manager.h" | 15 #include "extensions/browser/process_manager.h" |
15 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
16 | 17 |
17 using extensions::Extension; | 18 using extensions::Extension; |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
21 // A callback that returns true if the condition has been met and takes no | 22 // A callback that returns true if the condition has been met and takes no |
22 // arguments. | 23 // arguments. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 116 |
116 void ChromeExtensionTestNotificationObserver::WaitForExtensionAndViewLoad() { | 117 void ChromeExtensionTestNotificationObserver::WaitForExtensionAndViewLoad() { |
117 WaitForExtensionLoad(); | 118 WaitForExtensionLoad(); |
118 WaitForExtensionViewsToLoad(); | 119 WaitForExtensionViewsToLoad(); |
119 } | 120 } |
120 | 121 |
121 void ChromeExtensionTestNotificationObserver::OnPageActionsUpdated( | 122 void ChromeExtensionTestNotificationObserver::OnPageActionsUpdated( |
122 content::WebContents* web_contents) { | 123 content::WebContents* web_contents) { |
123 MaybeQuit(); | 124 MaybeQuit(); |
124 } | 125 } |
OLD | NEW |