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

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

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 years, 4 months 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_apitest.h
diff --git a/chrome/browser/extensions/extension_apitest.h b/chrome/browser/extensions/extension_apitest.h
index 3e2c13c27248e5808c8365fd279a30cf76de423d..1c20babdf970ff5801e6791ea6eb75def6b8424e 100644
--- a/chrome/browser/extensions/extension_apitest.h
+++ b/chrome/browser/extensions/extension_apitest.h
@@ -39,6 +39,8 @@ class ExtensionApiTest : public ExtensionBrowserTest {
// succeeded or failed. Returns true if the test succeeded, false otherwise.
bool GetNextResult();
+ void RestrictToProfile(Profile* profile) { profile_restriction_ = profile; }
+
const std::string& message() { return message_; }
private:
@@ -54,6 +56,9 @@ class ExtensionApiTest : public ExtensionBrowserTest {
// If it failed, what was the error message?
std::deque<std::string> messages_;
std::string message_;
+
+ // If non-NULL, we will listen to events from this profile only.
+ Profile* profile_restriction_;
};
// Load |extension_name| and wait for pass / fail notification.
« no previous file with comments | « chrome/browser/extensions/extension_accessibility_api.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698