Index: chrome/browser/extensions/user_script_master.h |
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h |
index 0423305dff9418999ef7e37a64c2b427dc584bba..19562f0e28747839f701131063153db9e2fcb412 100644 |
--- a/chrome/browser/extensions/user_script_master.h |
+++ b/chrome/browser/extensions/user_script_master.h |
@@ -17,6 +17,7 @@ namespace base { |
class StringPiece; |
} |
+class Extension; |
class Profile; |
// Manages a segment of shared memory that contains the user scripts the user |
@@ -46,6 +47,11 @@ class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>, |
// Returns the path to the directory user scripts are stored in. |
FilePath user_script_dir() const { return user_script_dir_; } |
+ // Note: this is only for testing. This will reload the scripts associated |
+ // with the given extension. This is only temporary until we get better |
+ // machinery in place for toggling incognito-enabled extensions. |
+ void ReloadExtensionForTesting(Extension* extension); |
+ |
protected: |
friend class base::RefCountedThreadSafe<UserScriptMaster>; |