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

Unified Diff: chrome/browser/extensions/extension_browsertest.h

Issue 11415216: Make Blacklist::IsBlacklist asynchronous (it will need to be for safe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another test Created 8 years 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/extension_browsertest.h
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h
index b1e82a0b1a999f6dbd8402fbfa603ab36b55c32f..03743b21b12ca0ae7ef2e6d214695a69c30b2955 100644
--- a/chrome/browser/extensions/extension_browsertest.h
+++ b/chrome/browser/extensions/extension_browsertest.h
@@ -12,6 +12,8 @@
#include "base/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "chrome/browser/extensions/extension_host.h"
+#include "chrome/browser/extensions/extension_system.h"
+#include "chrome/browser/ui/browser.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/feature_switch.h"
#include "chrome/common/extensions/features/feature.h"
@@ -21,7 +23,9 @@
#include "content/public/browser/notification_types.h"
#include "content/public/browser/web_contents.h"
+class ExtensionService;
class ExtensionProcessManager;
+class Profile;
// Base class for extension browser tests. Provides utilities for loading,
// unloading, and installing extensions.
@@ -50,6 +54,12 @@ class ExtensionBrowserTest : virtual public InProcessBrowserTest,
ExtensionBrowserTest();
virtual ~ExtensionBrowserTest();
+ // Useful accessors.
+ Profile* profile() { return browser()->profile(); }
+ ExtensionService* extension_service() {
+ return extensions::ExtensionSystem::Get(profile())->extension_service();
+ }
+
// InProcessBrowserTest
virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698