diff options
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r-- | chrome/browser/extensions/chrome_app_api_browsertest.cc | 9 | ||||
-rw-r--r-- | chrome/browser/extensions/extension_prefs.cc | 7 | ||||
-rw-r--r-- | chrome/browser/extensions/installed_loader.cc | 3 |
3 files changed, 11 insertions, 8 deletions
diff --git a/chrome/browser/extensions/chrome_app_api_browsertest.cc b/chrome/browser/extensions/chrome_app_api_browsertest.cc index 0f5219e..738afe1 100644 --- a/chrome/browser/extensions/chrome_app_api_browsertest.cc +++ b/chrome/browser/extensions/chrome_app_api_browsertest.cc @@ -13,6 +13,7 @@ #include "chrome/browser/ui/browser.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/extensions/extension.h" +#include "chrome/common/extensions/manifest.h" #include "chrome/test/base/ui_test_utils.h" #include "content/browser/tab_contents/tab_contents.h" #include "googleurl/src/gurl.h" @@ -98,10 +99,10 @@ IN_PROC_BROWSER_TEST_F(ChromeAppAPITest, IsInstalled) { scoped_ptr<DictionaryValue> app_details( static_cast<DictionaryValue*>( base::JSONReader::Read(result, false /* allow trailing comma */))); - // extension->manifest_value() does not contain the id. + // extension->manifest() does not contain the id. app_details->Remove("id", NULL); EXPECT_TRUE(app_details.get()); - EXPECT_TRUE(app_details->Equals(extension->manifest_value())); + EXPECT_TRUE(app_details->Equals(extension->manifest()->value())); // Try to change app.isInstalled. Should silently fail, so // that isInstalled should have the initial value. @@ -177,8 +178,8 @@ IN_PROC_BROWSER_TEST_F(ChromeAppAPITest, GetDetailsForFrame) { scoped_ptr<DictionaryValue> app_details( static_cast<DictionaryValue*>( base::JSONReader::Read(json, false /* allow trailing comma */))); - // extension->manifest_value() does not contain the id. + // extension->manifest() does not contain the id. app_details->Remove("id", NULL); EXPECT_TRUE(app_details.get()); - EXPECT_TRUE(app_details->Equals(extension->manifest_value())); + EXPECT_TRUE(app_details->Equals(extension->manifest()->value())); } diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc index 6e7a907..875b842 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.h" #include "chrome/common/extensions/url_pattern.h" #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" @@ -1106,7 +1107,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()->DeepCopy()); } if (extension->is_app()) { @@ -1196,10 +1197,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()->Equals(old_manifest); if (update_required) { UpdateExtensionPref(extension->id(), kPrefManifest, - extension->manifest_value()->DeepCopy()); + extension->manifest()->value()->DeepCopy()); } } } diff --git a/chrome/browser/extensions/installed_loader.cc b/chrome/browser/extensions/installed_loader.cc index 43a1304..2fb5e2d 100644 --- a/chrome/browser/extensions/installed_loader.cc +++ b/chrome/browser/extensions/installed_loader.cc @@ -15,6 +15,7 @@ #include "chrome/common/extensions/extension.h" #include "chrome/common/extensions/extension_file_util.h" #include "chrome/common/extensions/extension_l10n_util.h" +#include "chrome/common/extensions/manifest.h" #include "chrome/common/pref_names.h" #include "content/public/browser/notification_service.h" #include "content/browser/user_metrics.h" @@ -141,7 +142,7 @@ void InstalledLoader::LoadAllExtensions() { if (extension.get()) { extensions_info->at(i)->extension_manifest.reset( static_cast<DictionaryValue*>( - extension->manifest_value()->DeepCopy())); + extension->manifest()->value()->DeepCopy())); should_write_prefs = true; } } |