Enable Enterprise enrollment on desktop builds.
[chromium-blink-merge.git] / chrome / common / extensions / manifest_handlers / minimum_chrome_version_checker.h
blob0e22479c4985da26f63e62ce607dd602a608dcfc
1 // Copyright 2013 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 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_
8 #include "extensions/common/manifest_handler.h"
10 namespace extensions {
12 // Checks that the "minimum_chrome_version" requirement is met.
13 class MinimumChromeVersionChecker : public ManifestHandler {
14 public:
15 MinimumChromeVersionChecker();
16 virtual ~MinimumChromeVersionChecker();
18 // Validate minimum Chrome version. We don't need to store this, since the
19 // extension is not valid if it is incorrect.
20 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE;
22 private:
23 virtual const std::vector<std::string> Keys() const OVERRIDE;
25 DISALLOW_COPY_AND_ASSIGN(MinimumChromeVersionChecker);
28 } // namespace extensions
30 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_