Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1317)

Unified Diff: chrome/browser/extensions/chrome_extension_test_notification_observer.cc

Issue 2524553002: [Extensions] Create ChromeTestExtensionLoader (Closed)
Patch Set: . Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/chrome_extension_test_notification_observer.cc
diff --git a/chrome/browser/extensions/chrome_extension_test_notification_observer.cc b/chrome/browser/extensions/chrome_extension_test_notification_observer.cc
index 3daa0038e38e51fabc0858de8e81f73484a47025..eb2498c2b0bb54eefb7507919fb73251c55875ad 100644
--- a/chrome/browser/extensions/chrome_extension_test_notification_observer.cc
+++ b/chrome/browser/extensions/chrome_extension_test_notification_observer.cc
@@ -52,6 +52,10 @@ ChromeExtensionTestNotificationObserver::
browser_(browser) {}
ChromeExtensionTestNotificationObserver::
+ ChromeExtensionTestNotificationObserver(content::BrowserContext* context)
+ : ExtensionTestNotificationObserver(context), browser_(nullptr) {}
+
+ChromeExtensionTestNotificationObserver::
~ChromeExtensionTestNotificationObserver() {}
content::BrowserContext*
@@ -67,6 +71,7 @@ ChromeExtensionTestNotificationObserver::GetBrowserContext() {
bool ChromeExtensionTestNotificationObserver::
WaitForPageActionVisibilityChangeTo(int count) {
+ DCHECK(browser_);
ScopedObserver<extensions::ExtensionActionAPI,
extensions::ExtensionActionAPI::Observer>
observer(this);

Powered by Google App Engine
This is Rietveld 408576698