Commit 64d556c9 authored by Sergey Ulanov's avatar Sergey Ulanov Committed by Commit Bot

Add Fuchisa to the list of platforms in //services

Bug: 737802
Change-Id: I95d347a34665f8ec1273fa0b3bd7d9eecc25cfad
Reviewed-on: https://chromium-review.googlesource.com/568566Reviewed-by: default avatarYuzhu Shen <yzshen@chromium.org>
Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486606}
parent ec4e0859
......@@ -5,6 +5,7 @@
#include "services/catalog/public/cpp/manifest_parsing_util.h"
#include "base/values.h"
#include "build/build_config.h"
#include "services/catalog/store.h"
namespace catalog {
......@@ -15,7 +16,8 @@ bool IsValidPlatformName(const std::string& name) {
return name == Store::kRequiredFilesKey_PlatformValue_Windows ||
name == Store::kRequiredFilesKey_PlatformValue_Linux ||
name == Store::kRequiredFilesKey_PlatformValue_MacOSX ||
name == Store::kRequiredFilesKey_PlatformValue_Android;
name == Store::kRequiredFilesKey_PlatformValue_Android ||
name == Store::kRequiredFilesKey_PlatformValue_Fuchsia;
}
bool IsCurrentPlatform(const std::string& name) {
......@@ -27,6 +29,8 @@ bool IsCurrentPlatform(const std::string& name) {
return name == Store::kRequiredFilesKey_PlatformValue_MacOSX;
#elif defined(OS_ANDROID)
return name == Store::kRequiredFilesKey_PlatformValue_Android;
#elif defined(OS_FUCHSIA)
return name == Store::kRequiredFilesKey_PlatformValue_Fuchsia;
#else
#error This architecture is not supported.
#endif
......
......@@ -32,4 +32,7 @@ const char Store::kRequiredFilesKey_PlatformValue_Linux[] = "linux";
const char Store::kRequiredFilesKey_PlatformValue_MacOSX[] = "macosx";
// static
const char Store::kRequiredFilesKey_PlatformValue_Android[] = "android";
// static
const char Store::kRequiredFilesKey_PlatformValue_Fuchsia[] = "fuchsia";
} // namespace catalog
......@@ -33,6 +33,7 @@ class Store {
static const char kRequiredFilesKey_PlatformValue_Linux[];
static const char kRequiredFilesKey_PlatformValue_MacOSX[];
static const char kRequiredFilesKey_PlatformValue_Android[];
static const char kRequiredFilesKey_PlatformValue_Fuchsia[];
};
} // namespace catalog
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment