diff options
author | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 00:14:13 +0000 |
---|---|---|
committer | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 00:14:13 +0000 |
commit | 83048a2179db7e3b8f290a4a0f3a7fdc5166dd4d (patch) | |
tree | a578820e10deb5a4cf26c9edf99cdfa8862a0172 /chrome/browser/extensions/extension_info_map_unittest.cc | |
parent | 7ac27facde2ad544c1a1e4b63d1410e48ffa5670 (diff) | |
download | chromium_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/extensions/extension_info_map_unittest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_info_map_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_info_map_unittest.cc b/chrome/browser/extensions/extension_info_map_unittest.cc index dd814d1..d8909e6 100644 --- a/chrome/browser/extensions/extension_info_map_unittest.cc +++ b/chrome/browser/extensions/extension_info_map_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -42,8 +42,8 @@ static scoped_refptr<Extension> CreateExtension(const std::string& name) { std::string error; scoped_refptr<Extension> extension = Extension::Create( - path.AppendASCII(name), Extension::INVALID, manifest, false, true, - &error); + path.AppendASCII(name), Extension::INVALID, manifest, + Extension::STRICT_ERROR_CHECKS, &error); EXPECT_TRUE(extension) << error; return extension; @@ -65,7 +65,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()), - false, true, &error); + Extension::STRICT_ERROR_CHECKS, &error); EXPECT_TRUE(extension) << error; return extension; |