Chromium Code Reviews| Index: chrome/browser/extensions/extension_prefs.cc |
| diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc |
| index 92412645bc76dc65f1c8531c4d385367bb72c0f3..8b09c4768d30f3c4061a6ecf4486480ee1239f7e 100644 |
| --- a/chrome/browser/extensions/extension_prefs.cc |
| +++ b/chrome/browser/extensions/extension_prefs.cc |
| @@ -12,6 +12,7 @@ |
| #include "chrome/browser/prefs/scoped_user_pref_update.h" |
| #include "chrome/common/chrome_notification_types.h" |
| #include "chrome/common/extensions/extension.h" |
| +#include "chrome/common/extensions/manifest_value.h" |
| #include "chrome/common/extensions/url_pattern.h" |
| #include "chrome/common/pref_names.h" |
| #include "chrome/common/url_constants.h" |
| @@ -1100,7 +1101,7 @@ void ExtensionPrefs::OnExtensionInstalled( |
| // since it may change on disk. |
| if (extension->location() != Extension::LOAD) { |
| extension_dict->Set(kPrefManifest, |
| - extension->manifest_value()->DeepCopy()); |
| + extension->manifest_value()->value()->DeepCopy()); |
|
Aaron Boodman
2011/11/23 01:45:25
Yeah, calling this thing just "manifest" would mak
jstritar
2011/11/28 23:09:56
Yeah, much better. Done.
|
| } |
| if (extension->is_app()) { |
| @@ -1190,10 +1191,10 @@ void ExtensionPrefs::UpdateManifest(const Extension* extension) { |
| DictionaryValue* old_manifest = NULL; |
| bool update_required = |
| !extension_dict->GetDictionary(kPrefManifest, &old_manifest) || |
| - !extension->manifest_value()->Equals(old_manifest); |
| + !extension->manifest_value()->value()->Equals(old_manifest); |
| if (update_required) { |
| UpdateExtensionPref(extension->id(), kPrefManifest, |
| - extension->manifest_value()->DeepCopy()); |
| + extension->manifest_value()->value()->DeepCopy()); |
| } |
| } |
| } |