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

Unified Diff: extensions/common/features/simple_feature.h

Issue 1047943002: Cache --whitelisted-extension-id in SimpleFeature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expose SetWhitelistedExtensionId for tests. 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: extensions/common/features/simple_feature.h
diff --git a/extensions/common/features/simple_feature.h b/extensions/common/features/simple_feature.h
index 9d8c539414bb42f775911dbd76fa7c1cbaed192f..9318ef210b848f4dd11f003b213f10ccce849887 100644
--- a/extensions/common/features/simple_feature.h
+++ b/extensions/common/features/simple_feature.h
@@ -87,6 +87,9 @@ class SimpleFeature : public Feature {
const char* const array[],
size_t array_length);
+ // Used by tests to override the cached --whitelisted-extension-id.
+ static void SetWhitelistedExtensionId(const std::string& id);
not at google - send to devlin 2015/04/08 17:59:22 I prefer to only provide RAII versions of these se
jackhou1 2015/04/09 07:23:28 Done.
+
protected:
// Similar to Manifest::Location, these are the classes of locations
// supported in feature files. Production code should never directly access

Powered by Google App Engine
This is Rietveld 408576698