From 1b8ca7112df30a566c911d77c84d145ba83fb1fa Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Tue, 18 Aug 2009 20:10:37 +0000 Subject: 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 --- chrome/browser/extensions/extension_prefs.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'chrome/browser/extensions/extension_prefs.cc') 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) { -- cgit v1.1