| Index: extensions/browser/extension_prefs.cc
|
| diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
|
| index a3604e9109019283a31b5c8985d40a00d0c0094e..5ef763c6e8de7c596f89141ca944e215a78e0b88 100644
|
| --- a/extensions/browser/extension_prefs.cc
|
| +++ b/extensions/browser/extension_prefs.cc
|
| @@ -1335,19 +1335,6 @@ void ExtensionPrefs::UpdateManifest(const Extension* extension) {
|
| }
|
| }
|
|
|
| -base::FilePath ExtensionPrefs::GetExtensionPath(
|
| - const std::string& extension_id) {
|
| - const base::DictionaryValue* dict = GetExtensionPref(extension_id);
|
| - if (!dict)
|
| - return base::FilePath();
|
| -
|
| - std::string path;
|
| - if (!dict->GetString(kPrefPath, &path))
|
| - return base::FilePath();
|
| -
|
| - return install_directory_.Append(base::FilePath::FromUTF8Unsafe(path));
|
| -}
|
| -
|
| scoped_ptr<ExtensionInfo> ExtensionPrefs::GetInstalledInfoHelper(
|
| const std::string& extension_id,
|
| const base::DictionaryValue* extension) const {
|
| @@ -1362,9 +1349,15 @@ scoped_ptr<ExtensionInfo> ExtensionPrefs::GetInstalledInfoHelper(
|
| // Make path absolute. Unpacked extensions will already have absolute paths,
|
| // otherwise make it so.
|
| Manifest::Location location = static_cast<Manifest::Location>(location_value);
|
| +#if !defined(OS_CHROMEOS)
|
| if (!Manifest::IsUnpackedLocation(location)) {
|
| DCHECK(location == Manifest::COMPONENT ||
|
| !base::FilePath(path).IsAbsolute());
|
| +#else
|
| + // On Chrome OS some extensions can be installed to shared location and
|
| + // thus use absolute paths in prefs.
|
| + if (!base::FilePath(path).IsAbsolute()) {
|
| +#endif // !defined(OS_CHROMEOS)
|
| path = install_directory_.Append(path).value();
|
| }
|
|
|
|
|