summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-31 18:37:51 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-31 18:37:51 +0000
commited3b9b1d3b64978aff2f61bb6d92226fa135fcfa (patch)
treee7ce144149ce5f87159f4c8680115876eea3bcde /chrome/browser
parent49ead3c7d316411e8d63a2f59acb6e05b0597cdd (diff)
downloadchromium_src-ed3b9b1d3b64978aff2f61bb6d92226fa135fcfa.zip
chromium_src-ed3b9b1d3b64978aff2f61bb6d92226fa135fcfa.tar.gz
chromium_src-ed3b9b1d3b64978aff2f61bb6d92226fa135fcfa.tar.bz2
Remove Extension::STRICT_ERROR_CHECKS, it was never used.
TBR=jhawkins@chromium.org Review URL: https://chromiumcodereview.appspot.com/10451089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/background/background_application_list_model_unittest.cc2
-rw-r--r--chrome/browser/extensions/component_loader.cc5
-rw-r--r--chrome/browser/extensions/convert_web_app.cc2
-rw-r--r--chrome/browser/extensions/extension_creator.cc2
-rw-r--r--chrome/browser/extensions/extension_icon_manager_unittest.cc4
-rw-r--r--chrome/browser/extensions/extension_info_map_unittest.cc4
-rw-r--r--chrome/browser/extensions/extension_management_api.cc4
-rw-r--r--chrome/browser/extensions/extension_prefs_unittest.cc14
-rw-r--r--chrome/browser/extensions/extension_protocols_unittest.cc2
-rw-r--r--chrome/browser/extensions/extension_sorting_unittest.cc4
-rw-r--r--chrome/browser/extensions/extension_special_storage_policy_unittest.cc12
-rw-r--r--chrome/browser/extensions/extension_ui_unittest.cc5
-rw-r--r--chrome/browser/extensions/image_loading_tracker_unittest.cc2
-rw-r--r--chrome/browser/extensions/installed_loader.cc2
-rw-r--r--chrome/browser/extensions/test_extension_prefs.cc2
-rw-r--r--chrome/browser/extensions/unpacked_installer.cc4
-rw-r--r--chrome/browser/intents/web_intents_registry_unittest.cc8
-rw-r--r--chrome/browser/sync/glue/chrome_extensions_activity_monitor_unittest.cc3
-rw-r--r--chrome/browser/sync/glue/theme_util_unittest.cc3
-rw-r--r--chrome/browser/sync/test/integration/sync_extension_helper.cc4
-rw-r--r--chrome/browser/themes/browser_theme_pack_unittest.cc2
-rw-r--r--chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller_unittest.mm2
-rw-r--r--chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm2
-rw-r--r--chrome/browser/ui/panels/base_panel_browser_test.cc3
24 files changed, 38 insertions, 59 deletions
diff --git a/chrome/browser/background/background_application_list_model_unittest.cc b/chrome/browser/background/background_application_list_model_unittest.cc
index 982badf..65bdcac 100644
--- a/chrome/browser/background/background_application_list_model_unittest.cc
+++ b/chrome/browser/background/background_application_list_model_unittest.cc
@@ -72,7 +72,7 @@ static scoped_refptr<Extension> CreateExtension(const std::string& name,
bogus_file_path().AppendASCII(name),
Extension::INVALID,
manifest,
- Extension::STRICT_ERROR_CHECKS,
+ Extension::NO_FLAGS,
&error);
// Cannot ASSERT_* here because that attempts an illegitimate return.
// Cannot EXPECT_NE here because that assumes non-pointers unlike EXPECT_EQ
diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc
index 9a02b63..595b001 100644
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -145,11 +145,10 @@ void ComponentLoader::Reload(const std::string& extension_id) {
}
const Extension* ComponentLoader::Load(const ComponentExtensionInfo& info) {
- int flags = Extension::REQUIRE_KEY;
// TODO(abarth): We should REQUIRE_MODERN_MANIFEST_VERSION once we've updated
// our component extensions to the new manifest version.
- if (Extension::ShouldDoStrictErrorChecking(Extension::COMPONENT))
- flags |= Extension::STRICT_ERROR_CHECKS;
+ int flags = Extension::REQUIRE_KEY;
+
std::string error;
// Get the absolute path to the extension.
diff --git a/chrome/browser/extensions/convert_web_app.cc b/chrome/browser/extensions/convert_web_app.cc
index bd36cb5..0f8bc53 100644
--- a/chrome/browser/extensions/convert_web_app.cc
+++ b/chrome/browser/extensions/convert_web_app.cc
@@ -174,7 +174,7 @@ scoped_refptr<Extension> ConvertWebAppToExtension(
// Finally, create the extension object to represent the unpacked directory.
std::string error;
- int extension_flags = Extension::STRICT_ERROR_CHECKS;
+ int extension_flags = Extension::NO_FLAGS;
if (web_app.is_bookmark_app)
extension_flags |= Extension::FROM_BOOKMARK;
scoped_refptr<Extension> extension = Extension::Create(
diff --git a/chrome/browser/extensions/extension_creator.cc b/chrome/browser/extensions/extension_creator.cc
index 0aaa77f..ea03d3a 100644
--- a/chrome/browser/extensions/extension_creator.cc
+++ b/chrome/browser/extensions/extension_creator.cc
@@ -107,7 +107,7 @@ bool ExtensionCreator::ValidateManifest(const FilePath& extension_dir,
extension_dir,
extension_id,
Extension::INTERNAL,
- Extension::STRICT_ERROR_CHECKS | Extension::FOLLOW_SYMLINKS_ANYWHERE,
+ Extension::FOLLOW_SYMLINKS_ANYWHERE,
&error_message_));
return !!extension.get();
}
diff --git a/chrome/browser/extensions/extension_icon_manager_unittest.cc b/chrome/browser/extensions/extension_icon_manager_unittest.cc
index 615ae8d..3e3485b 100644
--- a/chrome/browser/extensions/extension_icon_manager_unittest.cc
+++ b/chrome/browser/extensions/extension_icon_manager_unittest.cc
@@ -116,7 +116,7 @@ TEST_F(ExtensionIconManagerTest, LoadRemoveLoad) {
std::string error;
scoped_refptr<Extension> extension(Extension::Create(
manifest_path.DirName(), Extension::INVALID, *manifest.get(),
- Extension::STRICT_ERROR_CHECKS, &error));
+ Extension::NO_FLAGS, &error));
ASSERT_TRUE(extension.get());
TestIconManager icon_manager(this);
@@ -157,7 +157,7 @@ TEST_F(ExtensionIconManagerTest, LoadComponentExtensionResource) {
std::string error;
scoped_refptr<Extension> extension(Extension::Create(
manifest_path.DirName(), Extension::COMPONENT, *manifest.get(),
- Extension::STRICT_ERROR_CHECKS, &error));
+ Extension::NO_FLAGS, &error));
ASSERT_TRUE(extension.get());
TestIconManager icon_manager(this);
diff --git a/chrome/browser/extensions/extension_info_map_unittest.cc b/chrome/browser/extensions/extension_info_map_unittest.cc
index 1317c9e..659d52d 100644
--- a/chrome/browser/extensions/extension_info_map_unittest.cc
+++ b/chrome/browser/extensions/extension_info_map_unittest.cc
@@ -51,7 +51,7 @@ static scoped_refptr<Extension> CreateExtension(const std::string& name) {
std::string error;
scoped_refptr<Extension> extension = Extension::Create(
path.AppendASCII(name), Extension::INVALID, manifest,
- Extension::STRICT_ERROR_CHECKS, &error);
+ Extension::NO_FLAGS, &error);
EXPECT_TRUE(extension) << error;
return extension;
@@ -73,7 +73,7 @@ static scoped_refptr<Extension> LoadManifest(const std::string& dir,
std::string error;
scoped_refptr<Extension> extension = Extension::Create(
path, Extension::INVALID, *static_cast<DictionaryValue*>(result.get()),
- Extension::STRICT_ERROR_CHECKS, &error);
+ Extension::NO_FLAGS, &error);
EXPECT_TRUE(extension) << error;
return extension;
diff --git a/chrome/browser/extensions/extension_management_api.cc b/chrome/browser/extensions/extension_management_api.cc
index 8f3da298..61edc4a 100644
--- a/chrome/browser/extensions/extension_management_api.cc
+++ b/chrome/browser/extensions/extension_management_api.cc
@@ -291,8 +291,8 @@ void GetPermissionWarningsByManifestFunction::OnParseSuccess(
CHECK(parsed_manifest);
scoped_refptr<Extension> extension = Extension::Create(
- FilePath(), Extension::INVALID, *parsed_manifest,
- Extension::STRICT_ERROR_CHECKS, &error_);
+ FilePath(), Extension::INVALID, *parsed_manifest, Extension::NO_FLAGS,
+ &error_);
if (!extension.get()) {
OnParseFailure(keys::kExtensionCreateError);
return;
diff --git a/chrome/browser/extensions/extension_prefs_unittest.cc b/chrome/browser/extensions/extension_prefs_unittest.cc
index 378dfbf..b614f240 100644
--- a/chrome/browser/extensions/extension_prefs_unittest.cc
+++ b/chrome/browser/extensions/extension_prefs_unittest.cc
@@ -718,8 +718,7 @@ class ExtensionPrefsFlags : public ExtensionPrefsTest {
dictionary.SetString(extension_manifest_keys::kName, "from_webstore");
dictionary.SetString(extension_manifest_keys::kVersion, "0.1");
webstore_extension_ = prefs_.AddExtensionWithManifestAndFlags(
- dictionary, Extension::INTERNAL,
- Extension::STRICT_ERROR_CHECKS | Extension::FROM_WEBSTORE);
+ dictionary, Extension::INTERNAL, Extension::FROM_WEBSTORE);
}
{
@@ -727,8 +726,7 @@ class ExtensionPrefsFlags : public ExtensionPrefsTest {
dictionary.SetString(extension_manifest_keys::kName, "from_bookmark");
dictionary.SetString(extension_manifest_keys::kVersion, "0.1");
bookmark_extension_ = prefs_.AddExtensionWithManifestAndFlags(
- dictionary, Extension::INTERNAL,
- Extension::STRICT_ERROR_CHECKS | Extension::FROM_BOOKMARK);
+ dictionary, Extension::INTERNAL, Extension::FROM_BOOKMARK);
}
}
@@ -763,16 +761,16 @@ ExtensionPrefsPrepopulatedTest::ExtensionPrefsPrepopulatedTest()
ext1_scoped_ = Extension::Create(
prefs_.temp_dir().AppendASCII("ext1_"), Extension::EXTERNAL_PREF,
- simple_dict, Extension::STRICT_ERROR_CHECKS, &error);
+ simple_dict, Extension::NO_FLAGS, &error);
ext2_scoped_ = Extension::Create(
prefs_.temp_dir().AppendASCII("ext2_"), Extension::EXTERNAL_PREF,
- simple_dict, Extension::STRICT_ERROR_CHECKS, &error);
+ simple_dict, Extension::NO_FLAGS, &error);
ext3_scoped_ = Extension::Create(
prefs_.temp_dir().AppendASCII("ext3_"), Extension::EXTERNAL_PREF,
- simple_dict, Extension::STRICT_ERROR_CHECKS, &error);
+ simple_dict, Extension::NO_FLAGS, &error);
ext4_scoped_ = Extension::Create(
prefs_.temp_dir().AppendASCII("ext4_"), Extension::EXTERNAL_PREF,
- simple_dict, Extension::STRICT_ERROR_CHECKS, &error);
+ simple_dict, Extension::NO_FLAGS, &error);
ext1_ = ext1_scoped_.get();
ext2_ = ext2_scoped_.get();
diff --git a/chrome/browser/extensions/extension_protocols_unittest.cc b/chrome/browser/extensions/extension_protocols_unittest.cc
index 6c0f96b..12d5d87 100644
--- a/chrome/browser/extensions/extension_protocols_unittest.cc
+++ b/chrome/browser/extensions/extension_protocols_unittest.cc
@@ -35,7 +35,7 @@ scoped_refptr<Extension> CreateTestExtension(const std::string& name,
std::string error;
scoped_refptr<Extension> extension(
Extension::Create(path, Extension::INTERNAL, manifest,
- Extension::STRICT_ERROR_CHECKS, &error));
+ Extension::NO_FLAGS, &error));
EXPECT_TRUE(extension.get()) << error;
return extension;
}
diff --git a/chrome/browser/extensions/extension_sorting_unittest.cc b/chrome/browser/extensions/extension_sorting_unittest.cc
index 1cd8316..4d4cae5 100644
--- a/chrome/browser/extensions/extension_sorting_unittest.cc
+++ b/chrome/browser/extensions/extension_sorting_unittest.cc
@@ -618,7 +618,7 @@ class ExtensionSortingPreinstalledAppsBase :
std::string error;
app1_scoped_ = Extension::Create(
prefs_.temp_dir().AppendASCII("app1_"), Extension::EXTERNAL_PREF,
- simple_dict, Extension::STRICT_ERROR_CHECKS, &error);
+ simple_dict, Extension::NO_FLAGS, &error);
prefs()->OnExtensionInstalled(app1_scoped_.get(),
Extension::ENABLED,
false,
@@ -626,7 +626,7 @@ class ExtensionSortingPreinstalledAppsBase :
app2_scoped_ = Extension::Create(
prefs_.temp_dir().AppendASCII("app2_"), Extension::EXTERNAL_PREF,
- simple_dict, Extension::STRICT_ERROR_CHECKS, &error);
+ simple_dict, Extension::NO_FLAGS, &error);
prefs()->OnExtensionInstalled(app2_scoped_.get(),
Extension::ENABLED,
false,
diff --git a/chrome/browser/extensions/extension_special_storage_policy_unittest.cc b/chrome/browser/extensions/extension_special_storage_policy_unittest.cc
index cb81acf..f81aa3b 100644
--- a/chrome/browser/extensions/extension_special_storage_policy_unittest.cc
+++ b/chrome/browser/extensions/extension_special_storage_policy_unittest.cc
@@ -37,8 +37,7 @@ class ExtensionSpecialStoragePolicyTest : public testing::Test {
manifest.Set(keys::kWebURLs, list);
std::string error;
scoped_refptr<Extension> protected_app = Extension::Create(
- path, Extension::INVALID, manifest, Extension::STRICT_ERROR_CHECKS,
- &error);
+ path, Extension::INVALID, manifest, Extension::NO_FLAGS, &error);
EXPECT_TRUE(protected_app.get()) << error;
return protected_app;
}
@@ -62,8 +61,7 @@ class ExtensionSpecialStoragePolicyTest : public testing::Test {
manifest.Set(keys::kWebURLs, list);
std::string error;
scoped_refptr<Extension> unlimited_app = Extension::Create(
- path, Extension::INVALID, manifest, Extension::STRICT_ERROR_CHECKS,
- &error);
+ path, Extension::INVALID, manifest, Extension::NO_FLAGS, &error);
EXPECT_TRUE(unlimited_app.get()) << error;
return unlimited_app;
}
@@ -89,8 +87,7 @@ class ExtensionSpecialStoragePolicyTest : public testing::Test {
manifest.Set(keys::kPermissions, list);
std::string error;
scoped_refptr<Extension> component_app = Extension::Create(
- path, Extension::COMPONENT, manifest, Extension::STRICT_ERROR_CHECKS,
- &error);
+ path, Extension::COMPONENT, manifest, Extension::NO_FLAGS, &error);
EXPECT_TRUE(component_app.get()) << error;
return component_app;
}
@@ -115,8 +112,7 @@ class ExtensionSpecialStoragePolicyTest : public testing::Test {
manifest.Set(keys::kPermissions, list);
std::string error;
scoped_refptr<Extension> handler_app = Extension::Create(
- path, Extension::INVALID, manifest, Extension::STRICT_ERROR_CHECKS,
- &error);
+ path, Extension::INVALID, manifest, Extension::NO_FLAGS, &error);
EXPECT_TRUE(handler_app.get()) << error;
return handler_app;
}
diff --git a/chrome/browser/extensions/extension_ui_unittest.cc b/chrome/browser/extensions/extension_ui_unittest.cc
index e55c0ad..1c2eaa2 100644
--- a/chrome/browser/extensions/extension_ui_unittest.cc
+++ b/chrome/browser/extensions/extension_ui_unittest.cc
@@ -37,8 +37,8 @@ class ExtensionUITest : public testing::Test {
EXPECT_EQ("", error);
scoped_refptr<Extension> extension(Extension::Create(
- extension_path, location, *extension_data,
- Extension::REQUIRE_KEY | Extension::STRICT_ERROR_CHECKS, &error));
+ extension_path, location, *extension_data, Extension::REQUIRE_KEY,
+ &error));
EXPECT_TRUE(extension.get());
EXPECT_EQ("", error);
@@ -232,4 +232,3 @@ TEST_F(ExtensionUITest, PathPropagation) {
EXPECT_TRUE(extension_details->GetString("path", &ui_path));
EXPECT_EQ(extension_path, FilePath(ui_path));
}
-
diff --git a/chrome/browser/extensions/image_loading_tracker_unittest.cc b/chrome/browser/extensions/image_loading_tracker_unittest.cc
index 9fd69f3..2dce687 100644
--- a/chrome/browser/extensions/image_loading_tracker_unittest.cc
+++ b/chrome/browser/extensions/image_loading_tracker_unittest.cc
@@ -80,7 +80,7 @@ class ImageLoadingTrackerTest : public testing::Test,
return NULL;
return Extension::Create(test_file, location, *valid_value,
- Extension::STRICT_ERROR_CHECKS, &error);
+ Extension::NO_FLAGS, &error);
}
gfx::Image image_;
diff --git a/chrome/browser/extensions/installed_loader.cc b/chrome/browser/extensions/installed_loader.cc
index 26fe121..62384c2 100644
--- a/chrome/browser/extensions/installed_loader.cc
+++ b/chrome/browser/extensions/installed_loader.cc
@@ -292,8 +292,6 @@ int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) {
int flags = Extension::NO_FLAGS;
if (info->extension_location != Extension::LOAD)
flags |= Extension::REQUIRE_KEY;
- if (Extension::ShouldDoStrictErrorChecking(info->extension_location))
- flags |= Extension::STRICT_ERROR_CHECKS;
if (extension_prefs_->AllowFileAccess(info->extension_id))
flags |= Extension::ALLOW_FILE_ACCESS;
if (extension_prefs_->IsFromWebStore(info->extension_id))
diff --git a/chrome/browser/extensions/test_extension_prefs.cc b/chrome/browser/extensions/test_extension_prefs.cc
index 6ef8bf0..40e3b7d 100644
--- a/chrome/browser/extensions/test_extension_prefs.cc
+++ b/chrome/browser/extensions/test_extension_prefs.cc
@@ -125,7 +125,7 @@ scoped_refptr<Extension> TestExtensionPrefs::AddApp(std::string name) {
scoped_refptr<Extension> TestExtensionPrefs::AddExtensionWithManifest(
const DictionaryValue& manifest, Extension::Location location) {
return AddExtensionWithManifestAndFlags(manifest, location,
- Extension::STRICT_ERROR_CHECKS);
+ Extension::NO_FLAGS);
}
scoped_refptr<Extension> TestExtensionPrefs::AddExtensionWithManifestAndFlags(
diff --git a/chrome/browser/extensions/unpacked_installer.cc b/chrome/browser/extensions/unpacked_installer.cc
index 3bfb522..22b0714 100644
--- a/chrome/browser/extensions/unpacked_installer.cc
+++ b/chrome/browser/extensions/unpacked_installer.cc
@@ -125,8 +125,6 @@ void UnpackedInstaller::LoadFromCommandLine(const FilePath& path_in) {
int flags = Extension::REQUIRE_MODERN_MANIFEST_VERSION;
if (allow_file_access)
flags |= Extension::ALLOW_FILE_ACCESS;
- if (Extension::ShouldDoStrictErrorChecking(Extension::LOAD))
- flags |= Extension::STRICT_ERROR_CHECKS;
std::string error;
scoped_refptr<const Extension> extension(extension_file_util::LoadExtension(
@@ -189,8 +187,6 @@ void UnpackedInstaller::LoadWithFileAccess(bool allow_file_access) {
int flags = Extension::REQUIRE_MODERN_MANIFEST_VERSION;
if (allow_file_access)
flags |= Extension::ALLOW_FILE_ACCESS;
- if (Extension::ShouldDoStrictErrorChecking(Extension::LOAD))
- flags |= Extension::STRICT_ERROR_CHECKS;
std::string error;
scoped_refptr<const Extension> extension(extension_file_util::LoadExtension(
extension_path_,
diff --git a/chrome/browser/intents/web_intents_registry_unittest.cc b/chrome/browser/intents/web_intents_registry_unittest.cc
index 82673af..600d0cf 100644
--- a/chrome/browser/intents/web_intents_registry_unittest.cc
+++ b/chrome/browser/intents/web_intents_registry_unittest.cc
@@ -45,7 +45,6 @@ DictionaryValue* LoadManifestFile(const FilePath& path,
scoped_refptr<Extension> LoadExtensionWithLocation(
const std::string& name,
Extension::Location location,
- bool strict_error_checks,
std::string* error) {
FilePath path;
PathService::Get(chrome::DIR_TEST_DATA, &path);
@@ -55,20 +54,17 @@ scoped_refptr<Extension> LoadExtensionWithLocation(
scoped_ptr<DictionaryValue> value(LoadManifestFile(path, error));
if (!value.get())
return NULL;
- int flags = Extension::NO_FLAGS;
- if (strict_error_checks)
- flags |= Extension::STRICT_ERROR_CHECKS;
return Extension::Create(path.DirName(),
location,
*value,
- flags,
+ Extension::NO_FLAGS,
Extension::GenerateIdForPath(path),
error);
}
scoped_refptr<Extension> LoadExtension(const std::string& name,
std::string* error) {
- return LoadExtensionWithLocation(name, Extension::INTERNAL, false, error);
+ return LoadExtensionWithLocation(name, Extension::INTERNAL, error);
}
scoped_refptr<Extension> LoadAndExpectSuccess(const std::string& name) {
diff --git a/chrome/browser/sync/glue/chrome_extensions_activity_monitor_unittest.cc b/chrome/browser/sync/glue/chrome_extensions_activity_monitor_unittest.cc
index 66253e5..c309083 100644
--- a/chrome/browser/sync/glue/chrome_extensions_activity_monitor_unittest.cc
+++ b/chrome/browser/sync/glue/chrome_extensions_activity_monitor_unittest.cc
@@ -37,8 +37,7 @@ scoped_refptr<Extension> MakeExtension(const std::string& name) {
value.SetString(keys::kName, name);
std::string error;
scoped_refptr<Extension> extension(Extension::Create(
- path, Extension::INVALID, value, Extension::STRICT_ERROR_CHECKS,
- &error));
+ path, Extension::INVALID, value, Extension::NO_FLAGS, &error));
EXPECT_TRUE(error.empty());
return extension;
}
diff --git a/chrome/browser/sync/glue/theme_util_unittest.cc b/chrome/browser/sync/glue/theme_util_unittest.cc
index 7aede1e..76b8d3d 100644
--- a/chrome/browser/sync/glue/theme_util_unittest.cc
+++ b/chrome/browser/sync/glue/theme_util_unittest.cc
@@ -55,8 +55,7 @@ scoped_refptr<Extension> MakeThemeExtension(const FilePath& extension_path,
source.SetString(extension_manifest_keys::kVersion, "0.0.0.0");
std::string error;
scoped_refptr<Extension> extension = Extension::Create(
- extension_path, Extension::INTERNAL, source,
- Extension::STRICT_ERROR_CHECKS, &error);
+ extension_path, Extension::INTERNAL, source, Extension::NO_FLAGS, &error);
EXPECT_TRUE(extension);
EXPECT_EQ("", error);
return extension;
diff --git a/chrome/browser/sync/test/integration/sync_extension_helper.cc b/chrome/browser/sync/test/integration/sync_extension_helper.cc
index f32989a..20d1587 100644
--- a/chrome/browser/sync/test/integration/sync_extension_helper.cc
+++ b/chrome/browser/sync/test/integration/sync_extension_helper.cc
@@ -296,8 +296,8 @@ scoped_refptr<Extension> CreateExtension(
}
std::string error;
scoped_refptr<Extension> extension =
- Extension::Create(extension_dir, Extension::INTERNAL,
- source, Extension::STRICT_ERROR_CHECKS, &error);
+ Extension::Create(extension_dir, Extension::INTERNAL, source,
+ Extension::NO_FLAGS, &error);
if (!error.empty()) {
ADD_FAILURE() << error;
return NULL;
diff --git a/chrome/browser/themes/browser_theme_pack_unittest.cc b/chrome/browser/themes/browser_theme_pack_unittest.cc
index 008e5c2..8499a0b 100644
--- a/chrome/browser/themes/browser_theme_pack_unittest.cc
+++ b/chrome/browser/themes/browser_theme_pack_unittest.cc
@@ -411,7 +411,7 @@ TEST_F(BrowserThemePackTest, CanBuildAndReadPack) {
ASSERT_TRUE(valid_value.get());
scoped_refptr<Extension> extension(Extension::Create(
star_gazing_path, Extension::INVALID, *valid_value,
- Extension::REQUIRE_KEY | Extension::STRICT_ERROR_CHECKS, &error));
+ Extension::REQUIRE_KEY, &error));
ASSERT_TRUE(extension.get());
ASSERT_EQ("", error);
diff --git a/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller_unittest.mm b/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller_unittest.mm
index 2e9b7d6..167eff5 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller_unittest.mm
@@ -65,7 +65,7 @@ public:
}
extension_ = Extension::Create(path.DirName(), Extension::INVALID, *value,
- Extension::STRICT_ERROR_CHECKS, &error);
+ Extension::NO_FLAGS, &error);
if (!extension_.get()) {
LOG(ERROR) << error;
return;
diff --git a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm
index a26eaa0..c49fad9 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm
@@ -100,7 +100,7 @@ class ExtensionInstalledBubbleControllerTest : public CocoaProfileTest {
std::string error;
return Extension::Create(path, Extension::INVALID, extension_input_value,
- Extension::STRICT_ERROR_CHECKS, &error);
+ Extension::NO_FLAGS, &error);
}
// Required to initialize the extension installed bubble.
diff --git a/chrome/browser/ui/panels/base_panel_browser_test.cc b/chrome/browser/ui/panels/base_panel_browser_test.cc
index 0dd7bfe..39f803d 100644
--- a/chrome/browser/ui/panels/base_panel_browser_test.cc
+++ b/chrome/browser/ui/panels/base_panel_browser_test.cc
@@ -451,8 +451,7 @@ scoped_refptr<Extension> BasePanelBrowserTest::CreateExtension(
std::string error;
scoped_refptr<Extension> extension = Extension::Create(
- full_path, location, *input_value,
- Extension::STRICT_ERROR_CHECKS, &error);
+ full_path, location, *input_value, Extension::NO_FLAGS, &error);
EXPECT_TRUE(extension.get());
EXPECT_STREQ("", error.c_str());
browser()->profile()->GetExtensionService()->