Infobar material design refresh: bg color
[chromium-blink-merge.git] / courgette / courgette_config.cc
blobb92e43afb1bcd0b59f54a6b3d613adc9718748f9
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"
10 namespace courgette {
12 namespace {
14 static const uint32 kExperimentalVersion = 0xDEADBEEF;
16 } // namespace
18 // static
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