1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "courgette/courgette_config.h"
7 #include "base/command_line.h"
8 #include "courgette/ensemble.h"
14 static const uint32 kExperimentalVersion
= 0xDEADBEEF;
19 CourgetteConfig
* CourgetteConfig::GetInstance() {
20 return Singleton
<CourgetteConfig
>::get();
23 uint32
CourgetteConfig::ensemble_version() const {
24 return is_experimental_
? kExperimentalVersion
: CourgettePatchFile::kVersion
;
27 void CourgetteConfig::Initialize(const base::CommandLine
& command_line
) {
28 is_experimental_
= command_line
.HasSwitch("experimental");
31 CourgetteConfig::CourgetteConfig() : is_experimental_(false) {
34 } // namespace courgette