Index: chrome/browser/extensions/extension_prefs.h |
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h |
index 26e43275f8c7132eb5b7c14570b7c2e81acafe59..6245edac68f2ea73e5c6496f1088e1acb0f99533 100644 |
--- a/chrome/browser/extensions/extension_prefs.h |
+++ b/chrome/browser/extensions/extension_prefs.h |
@@ -158,9 +158,21 @@ class ExtensionPrefs { |
bool AllowFileAccess(const std::string& extension_id); |
void SetAllowFileAccess(const std::string& extension_id, bool allow); |
- ExtensionPrefs::LaunchType GetLaunchType(const std::string& extension_id); |
+ // Get the launch type preference. If no preference is set, return |
+ // |default_pref_value|. |
+ LaunchType GetLaunchType(const std::string& extension_id, |
+ LaunchType default_pref_value); |
+ |
void SetLaunchType(const std::string& extension_id, LaunchType launch_type); |
+ // Find the right launch container based on the launch type. |
+ // If |extension|'s prefs do not have a launch type set, then |
+ // use |default_pref_value|. |
+ extension_misc::LaunchContainer GetLaunchContainer( |
+ const Extension* extension, |
+ LaunchType default_pref_value); |
+ |
+ |
// Saves ExtensionInfo for each installed extension with the path to the |
// version directory and the location. Blacklisted extensions won't be saved |
// and neither will external extensions the user has explicitly uninstalled. |