summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/util
diff options
context:
space:
mode:
authormihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 00:14:13 +0000
committermihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 00:14:13 +0000
commit83048a2179db7e3b8f290a4a0f3a7fdc5166dd4d (patch)
treea578820e10deb5a4cf26c9edf99cdfa8862a0172 /chrome/browser/sync/util
parent7ac27facde2ad544c1a1e4b63d1410e48ffa5670 (diff)
downloadchromium_src-83048a2179db7e3b8f290a4a0f3a7fdc5166dd4d.zip
chromium_src-83048a2179db7e3b8f290a4a0f3a7fdc5166dd4d.tar.gz
chromium_src-83048a2179db7e3b8f290a4a0f3a7fdc5166dd4d.tar.bz2
Replace bools in extension creation with flags.
Turn require_key and strict_error_checks bool params of Extension:: InitFromValue, Extension::Create and extension_file_util::LoadExtension into a flags parameter. BUG=None TEST=compiles R=aa@chromium.org Review URL: http://codereview.chromium.org/6766002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79638 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/util')
-rw-r--r--chrome/browser/sync/util/extensions_activity_monitor_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/sync/util/extensions_activity_monitor_unittest.cc b/chrome/browser/sync/util/extensions_activity_monitor_unittest.cc
index 67585ae..b7e8e7c2 100644
--- a/chrome/browser/sync/util/extensions_activity_monitor_unittest.cc
+++ b/chrome/browser/sync/util/extensions_activity_monitor_unittest.cc
@@ -73,8 +73,8 @@ class BookmarkAPIEventGenerator {
input.SetString(keys::kVersion, kTestExtensionVersion);
input.SetString(keys::kName, kTestExtensionName);
scoped_refptr<Extension> extension(Extension::Create(
- FilePath(extension_path), Extension::INVALID, input, false, true,
- &error));
+ FilePath(extension_path), Extension::INVALID, input,
+ Extension::STRICT_ERROR_CHECKS, &error));
bookmarks_function->set_name(T::function_name());
base::WaitableEvent done_event(false, false);
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
@@ -132,8 +132,8 @@ class ExtensionsActivityMonitorTest : public testing::Test {
input.SetString(keys::kVersion, kTestExtensionVersion);
input.SetString(keys::kName, kTestExtensionName);
scoped_refptr<Extension> extension(Extension::Create(
- FilePath(extension_path), Extension::INVALID, input, false, true,
- &error));
+ FilePath(extension_path), Extension::INVALID, input,
+ Extension::STRICT_ERROR_CHECKS, &error));
EXPECT_EQ("", error);
return extension->id();
}