diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 20:10:37 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 20:10:37 +0000 |
commit | 1b8ca7112df30a566c911d77c84d145ba83fb1fa (patch) | |
tree | b1eb13f2ed1934926703cfebd881df7c5fc0f5ad /chrome/browser/extensions/extension_prefs.cc | |
parent | 6c0820730bb1e3583bbbce1f799c30aaa4046d1e (diff) | |
download | chromium_src-1b8ca7112df30a566c911d77c84d145ba83fb1fa.zip chromium_src-1b8ca7112df30a566c911d77c84d145ba83fb1fa.tar.gz chromium_src-1b8ca7112df30a566c911d77c84d145ba83fb1fa.tar.bz2 |
Revert "Fix "crashed extension" infobar browser crashes."
TBR=cevans
Review URL: http://codereview.chromium.org/173014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_prefs.cc')
-rw-r--r-- | chrome/browser/extensions/extension_prefs.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc index b81f6b8..84ee99d 100644 --- a/chrome/browser/extensions/extension_prefs.cc +++ b/chrome/browser/extensions/extension_prefs.cc @@ -351,18 +351,6 @@ void ExtensionPrefs::SetExtensionState(Extension* extension, prefs_->SavePersistentPrefs(); } -FilePath ExtensionPrefs::GetExtensionPath(const std::string& extension_id) { - const DictionaryValue* dict = prefs_->GetDictionary(kExtensionsPref); - if (!dict || dict->GetSize() == 0) - return FilePath(); - - std::wstring path; - if (!dict->GetString(ASCIIToWide(extension_id) + L"." + kPrefPath, &path)) - return FilePath(); - - return install_directory_.Append(FilePath::FromWStringHack(path)); -} - bool ExtensionPrefs::UpdateExtensionPref(const std::string& extension_id, const std::wstring& key, Value* data_value) { |