summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_prefs.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 15:22:46 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 15:22:46 +0000
commit371ed7a0e83c44764fef64ddbf00996b5385271e (patch)
tree5328f866d0c39ab82837ff7c91d1a3741ab97174 /chrome/browser/extensions/extension_prefs.h
parent856c26be2a9a419033f93d79ba9ee43e04b20458 (diff)
downloadchromium_src-371ed7a0e83c44764fef64ddbf00996b5385271e.zip
chromium_src-371ed7a0e83c44764fef64ddbf00996b5385271e.tar.gz
chromium_src-371ed7a0e83c44764fef64ddbf00996b5385271e.tar.bz2
Fix "crashed extension" infobar browser crashes.
This is a general rework of how "crashed extension" infobar works and how the extension is actually recovered after the crash. This is a subset of original http://codereview.chromium.org/164151/ . I had to remove the part which unloads the entire extension on crash, because it interacts badly with other parts of the browser. I'm fixing that. TEST=See bug. http://crbug.com/15888 Review URL: http://codereview.chromium.org/173314 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24231 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_prefs.h')
-rw-r--r--chrome/browser/extensions/extension_prefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index 59adfd8..11c7e31 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -56,6 +56,9 @@ class ExtensionPrefs {
// Ensure old extensions have fully up-to-date prefs values.
void MigrateToPrefs(Extension* extension);
+ // Returns extension path based on extension ID, or empty FilePath on error.
+ FilePath GetExtensionPath(const std::string& extension_id);
+
// Returns base extensions install directory.
const FilePath& install_directory() const { return install_directory_; }