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

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

Issue 1047943002: Cache --whitelisted-extension-id in SimpleFeature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests that fail on memory bots. Created 5 years, 8 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/test_extension_environment.h
diff --git a/chrome/browser/extensions/test_extension_environment.h b/chrome/browser/extensions/test_extension_environment.h
index 57136588c89aa5bcd32810bf73175deb368820bc..bea77e1d4e96290f959ab27761abbc867032f240 100644
--- a/chrome/browser/extensions/test_extension_environment.h
+++ b/chrome/browser/extensions/test_extension_environment.h
@@ -62,6 +62,11 @@ class TestExtensionEnvironment {
// manifest_extra override these defaults.
const Extension* MakeExtension(const base::Value& manifest_extra);
+ // Use a specific extension ID instead of the default generated in
+ // Extension::Create.
+ const Extension* MakeExtension(const base::Value& manifest_extra,
+ const std::string& id);
+
// Returns a test web contents that has a tab id.
scoped_ptr<content::WebContents> MakeTab() const;

Powered by Google App Engine
This is Rietveld 408576698