| Index: chrome/browser/extensions/extension_prefs_unittest.cc
|
| diff --git a/chrome/browser/extensions/extension_prefs_unittest.cc b/chrome/browser/extensions/extension_prefs_unittest.cc
|
| index c7034d1ff1188a79b91ef04f29a6d87475246135..ac96306cd675ae9ee37bbfda2f6667fe1c011c15 100644
|
| --- a/chrome/browser/extensions/extension_prefs_unittest.cc
|
| +++ b/chrome/browser/extensions/extension_prefs_unittest.cc
|
| @@ -18,13 +18,13 @@
|
| #include "chrome/browser/prefs/pref_service_syncable.h"
|
| #include "chrome/browser/prefs/scoped_user_pref_update.h"
|
| #include "chrome/common/chrome_paths.h"
|
| -#include "chrome/common/extensions/extension_manifest_constants.h"
|
| #include "chrome/common/extensions/permissions/permission_set.h"
|
| #include "chrome/common/extensions/permissions/permissions_info.h"
|
| #include "components/user_prefs/pref_registry_syncable.h"
|
| #include "content/public/browser/notification_details.h"
|
| #include "content/public/browser/notification_source.h"
|
| #include "content/public/test/mock_notification_observer.h"
|
| +#include "extensions/common/manifest_constants.h"
|
| #include "sync/api/string_ordinal.h"
|
|
|
| using base::Time;
|
| @@ -441,8 +441,8 @@ class ExtensionPrefsDelayedInstallInfo : public ExtensionPrefsTest {
|
| // Sets idle install information for one test extension.
|
| void SetIdleInfo(std::string id, int num) {
|
| DictionaryValue manifest;
|
| - manifest.SetString(extension_manifest_keys::kName, "test");
|
| - manifest.SetString(extension_manifest_keys::kVersion,
|
| + manifest.SetString(manifest_keys::kName, "test");
|
| + manifest.SetString(manifest_keys::kVersion,
|
| "1." + base::IntToString(num));
|
| base::FilePath path =
|
| prefs_.extensions_dir().AppendASCII(base::IntToString(num));
|
| @@ -470,7 +470,7 @@ class ExtensionPrefsDelayedInstallInfo : public ExtensionPrefsTest {
|
| info->extension_path.BaseName().MaybeAsASCII());
|
| }
|
|
|
| - bool HasInfoForId(extensions::ExtensionPrefs::ExtensionsInfo* info,
|
| + bool HasInfoForId(ExtensionPrefs::ExtensionsInfo* info,
|
| const std::string& id) {
|
| for (size_t i = 0; i < info->size(); ++i) {
|
| if (info->at(i)->extension_id == id)
|
| @@ -492,7 +492,7 @@ class ExtensionPrefsDelayedInstallInfo : public ExtensionPrefsTest {
|
| SetIdleInfo(id2_, 2);
|
| VerifyIdleInfo(id1_, 1);
|
| VerifyIdleInfo(id2_, 2);
|
| - scoped_ptr<extensions::ExtensionPrefs::ExtensionsInfo> info(
|
| + scoped_ptr<ExtensionPrefs::ExtensionsInfo> info(
|
| prefs()->GetAllDelayedInstallInfo());
|
| EXPECT_EQ(2u, info->size());
|
| EXPECT_TRUE(HasInfoForId(info.get(), id1_));
|
| @@ -524,7 +524,7 @@ class ExtensionPrefsDelayedInstallInfo : public ExtensionPrefsTest {
|
|
|
| virtual void Verify() OVERRIDE {
|
| // Make sure the info for the 3 extensions we expect is present.
|
| - scoped_ptr<extensions::ExtensionPrefs::ExtensionsInfo> info(
|
| + scoped_ptr<ExtensionPrefs::ExtensionsInfo> info(
|
| prefs()->GetAllDelayedInstallInfo());
|
| EXPECT_EQ(3u, info->size());
|
| EXPECT_TRUE(HasInfoForId(info.get(), id1_));
|
| @@ -600,25 +600,25 @@ class ExtensionPrefsFlags : public ExtensionPrefsTest {
|
| virtual void Initialize() OVERRIDE {
|
| {
|
| base::DictionaryValue dictionary;
|
| - dictionary.SetString(extension_manifest_keys::kName, "from_webstore");
|
| - dictionary.SetString(extension_manifest_keys::kVersion, "0.1");
|
| + dictionary.SetString(manifest_keys::kName, "from_webstore");
|
| + dictionary.SetString(manifest_keys::kVersion, "0.1");
|
| webstore_extension_ = prefs_.AddExtensionWithManifestAndFlags(
|
| dictionary, Manifest::INTERNAL, Extension::FROM_WEBSTORE);
|
| }
|
|
|
| {
|
| base::DictionaryValue dictionary;
|
| - dictionary.SetString(extension_manifest_keys::kName, "from_bookmark");
|
| - dictionary.SetString(extension_manifest_keys::kVersion, "0.1");
|
| + dictionary.SetString(manifest_keys::kName, "from_bookmark");
|
| + dictionary.SetString(manifest_keys::kVersion, "0.1");
|
| bookmark_extension_ = prefs_.AddExtensionWithManifestAndFlags(
|
| dictionary, Manifest::INTERNAL, Extension::FROM_BOOKMARK);
|
| }
|
|
|
| {
|
| base::DictionaryValue dictionary;
|
| - dictionary.SetString(extension_manifest_keys::kName,
|
| + dictionary.SetString(manifest_keys::kName,
|
| "was_installed_by_default");
|
| - dictionary.SetString(extension_manifest_keys::kVersion, "0.1");
|
| + dictionary.SetString(manifest_keys::kVersion, "0.1");
|
| default_extension_ = prefs_.AddExtensionWithManifestAndFlags(
|
| dictionary,
|
| Manifest::INTERNAL,
|
| @@ -648,8 +648,8 @@ PrefsPrepopulatedTestBase::PrefsPrepopulatedTestBase()
|
| DictionaryValue simple_dict;
|
| std::string error;
|
|
|
| - simple_dict.SetString(extension_manifest_keys::kVersion, "1.0.0.0");
|
| - simple_dict.SetString(extension_manifest_keys::kName, "unused");
|
| + simple_dict.SetString(manifest_keys::kVersion, "1.0.0.0");
|
| + simple_dict.SetString(manifest_keys::kName, "unused");
|
|
|
| extension1_ = Extension::Create(
|
| prefs_.temp_dir().AppendASCII("ext1_"),
|
|
|